Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

DLL file

Posted on 1998-09-28
2
Medium Priority
?
190 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 150 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

  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 …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

810 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