?
Solved

Kernel32 not found Error

Posted on 1998-09-30
7
Medium Priority
?
337 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 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