Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DLL file

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

609 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