Solved

Kernel32.dll - 95 vs. NT Problem

Posted on 1997-08-13
5
257 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

691 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