Solved

DLL load error

Posted on 2004-04-27
4
902 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
How do I set cell to blank in a Combo box column at a datagridview 3 102
vb.net - How to determine string that follows a given substring 7 58
Parsing HTML in C# 10 164
How to 4 54
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

756 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