Solved

Kernel32 not found Error

Posted on 1998-09-30
7
336 Views
Last Modified: 2010-04-06
I recently switched to Windows-98 (no post-conversion warnings, please) and now my compiled Delphi apps won't run on Windows-NT 4.0.  The error message is Kernel32 not found.  Obviously, Kernel32 is there, but it can't find it.  (It is in the Windows\System folder, which is also specified in the search path in the error message.)

Note: The user was using the previous version which used the same DLL and got no error.

Someone has suggested that the problem may be that Delphi (really the VCL) didn't use the explicit DLL extention and NT is not associating the file as a DLL.  How can I fix this ???
0
Comment
Question by:saintcyr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 10

Expert Comment

by:viktornet
ID: 1341296
Is the Kernel32.dll file in the System directory....???

//Vik
0
 

Author Comment

by:saintcyr
ID: 1341297
Edited text of question
0
 

Expert Comment

by:d_kiernan
ID: 1341298
I noticed a problem like this before, where the app compiled on NT wouldn't work on 95. I don't remember the Kernel32 error though.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:pjdb
ID: 1341299
I've had the same problem with NT4. It was because the user have no right the DLL. It can be solved in two way : use the system right in your program or modify the rights of the file.
0
 

Author Comment

by:saintcyr
ID: 1341300
Edited text of question
0
 
LVL 1

Expert Comment

by:BlackDeath
ID: 1341301
well, if the problem actually lies in not-associating that file with the correct extension, why don't you detect the system you're running on (nt/9x) and add it programmatically?

maybe it would be easier to decide what the right solution could be, if you posted some code here...

regs,
Black Death.
0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 100 total points
ID: 1341302
Make sure all the API function prototypes that map to kernel32 explicitly name it as 'kernel32.dll' instead of just 'kernel32'

ie: It should be:

external 'kernel32.dll'  (or external kernal32)

rather than

external 'kernel32'

Cheers,

Raymond.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question