Solved

Kernel32.dll - 95 vs. NT Problem

Posted on 1997-08-13
5
256 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
[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
5 Comments
 
LVL 3

Expert Comment

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

Accepted Solution

by:
chensu earned 100 total points
ID: 1403976
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
ID: 1403977
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
ID: 1403978
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
ID: 1403979
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

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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