Solved

DLL load error

Posted on 2004-04-27
4
900 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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