Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 926
  • Last Modified:

DLL load error

   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.
0
agzis
Asked:
agzis
1 Solution
 
_uni_Commented:
did you remember about __decl(dllexport)?

for example:
class CMyClass
{
public:
      __declspec(dllexport) CMyClass(void);
      __declspec(dllexport) ~CMyClass(void);
      __declspec(dllexport) void SayHello(CString s);
};

if so, please check project->properties->linker->optimization. set 'references' and 'enable comdat folding' to 'default' (or 'keep... / do not remove...').
0
 
agzisAuthor Commented:
Thanks. I used __decl(dllexport). My problem is GetThreadId function can be used only under Windows 2003 but I ran application in Win2k. Thanks anyway.
0
 
Computer101Commented:
PAQed, with points refunded (125)

Computer101
E-E Admin
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now