Solved

DLL file

Posted on 1998-09-28
2
182 Views
Last Modified: 2010-04-01
Do i have to #include "xxx.dll"  to access the functions in the dll ? And do i have to declare a DLL_MAIN() int the DLL file ?
0
Comment
Question by:SkyWolf
2 Comments
 

Author Comment

by:SkyWolf
ID: 1173948
Edited text of question
0
 
LVL 1

Accepted Solution

by:
sunj earned 50 total points
ID: 1173949
You do not have to #include "xxx.dll" to access the functions in a dll. When Windows loads the DLL, it will call the global function DllMain(). If you do not write a DllMain function for your DLL, an empty DllMain() version will be generated from the runtime library. So it is ok not to write a DllMain().

sunj
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

809 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