DLL load error.

A

agzis

I wrote DLL (no MFC at all). Here's some export functions. When I
call DLL from test application everything OK. Then I added to DLL
class (this class never called just compiled together without any
error). Then I started test application and on load received error
message "The procedure enntry point GetThreadId could not be located
in dynamic linked library KERNEL32.dll".
What can cause the error? thanks.
 
J

Jochen Kalmbach

agzis said:
I wrote DLL (no MFC at all). Here's some export functions. When I
call DLL from test application everything OK. Then I added to DLL
class (this class never called just compiled together without any
error). Then I started test application and on load received error
message "The procedure enntry point GetThreadId could not be located
in dynamic linked library KERNEL32.dll".
What can cause the error? thanks.

Some of your DLL is using this function and you are not running on
Windows 2003...
So be sure to define the correct WINNT-preprocessor definition while
compiling...

Normaly:
WINVER 0x0400
_WIN32_WINNT 0x0400
_WIN32_IE 0x0400

For more info see:

Using the Windows Headers
http://msdn.microsoft.com/library/en-
us/winprog/winprog/using_the_windows_headers.asp


--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp

Do you need daily reports from your server?
http://sourceforge.net/projects/srvreport/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top