?
Solved

DLL load error

Posted on 2004-04-27
4
Medium Priority
?
910 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
[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
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

762 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