?
Solved

DLL file

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

Industry Leaders: 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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

764 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