Solved

Kernel32.dll - 95 vs. NT Problem

Posted on 1997-08-13
5
245 Views
Last Modified: 2013-12-03
I've written a program which has been working great on Win95 platforms, however, now that I'm trying to get it to work on an NT 4.0 machine I get the following error message:
"The procedure entry point Thread32First could not be located in the dynamic link library kernal32.dll".
 I also get the same message for Thread32Next, Process32First, and Process32Next.  After exporting the functions for both versions of the library I see that the NT version doesn't even include these functions.  I have found no documentation on this, and no explanation for it.  It appears that Microsoft has done it again.

Any ideas?
0
Comment
Question by:ocurance
5 Comments
 
LVL 3

Expert Comment

by:vinniew
Comment Utility
They have different threading models, you'll have to find their replacements.
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
Comment Utility
These functions belong to Windows 95 Tool Help Library. Windows NT does not support these functions. In general, you should link them dynamically (::GetModuleHandle() and ::GetProcAddress()). You can find the documentations under
Win32 SDK\Programming Guides and Tools\Programmer's Guide to Windows 95\Using Windows 95 Features\Tool Help Library.
0
 
LVL 3

Expert Comment

by:vinniew
Comment Utility
Based on the comments here I don't understand what needs to be done to get around this?  Does "Link them dynamically" mean these functions still exist somewhere and I should just make the calls dynamically, or do I need to distribute the missing functions?  And I haven't a clue about using the dynamic data key of the registry, I wouldn't know where to begin.  

I don't know where these functions are being called, or even what they do.  Is there no way to simply emulate these calls, replace the missing functions, or something of the sort?  I'm in a bit of a bind and left hanging because 32bit functions didn't get ported from 95 to NT.  What's up with that?

Thanks
0
 

Author Comment

by:ocurance
Comment Utility
You cannot use these functions in NT as they do not exist in NT. You cannot distribute them from 95, because they are integrated into the operating system.

If you want to use your program on both 95 and NT you will have to link to them dynamically on a 95 system, so you don't get an error message when starting your program on an NT machine.

What do you use the functions for? Most probably you can do the same thing in NT using the HKEY_PERFORMANCE_DATA key in the registry.
0
 
LVL 5

Expert Comment

by:y96andha
Comment Utility
y96andha has explained well.

You may find more useful information from Win32 SDK documentations about System Services\Performance Monitoring and some samples under Windows SDK Samples\Windows NT Utilities.

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now