• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

DLL file

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
SkyWolf
Asked:
SkyWolf
1 Solution
 
SkyWolfAuthor Commented:
Edited text of question
0
 
sunjCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now