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
Solved

DLL load error

Posted on 2004-04-27
4
901 Views
Last Modified: 2012-08-14
   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
Comment
Question by:agzis
4 Comments
 

Expert Comment

by:_uni_
ID: 11003245
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
 

Author Comment

by:agzis
ID: 11004267
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
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 11522939
PAQed, with points refunded (125)

Computer101
E-E Admin
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

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 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