Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.DLL docs needed

Status
Not open for further replies.

McBugzz

Programmer
Joined
Sep 17, 2002
Messages
90
Location
JP
Does anybody know a good doc/tutorial on .dlls? pdfs, htmls, anything to get started.

Thanx
 
What about DLL’s? How to basically make one in C++? There are several sample projects for Visual C++ that are DLL projects. The Visual Studio Project Wizard for DLL type projects builds all sorts of sample code for you to jump start your DLL project. Or did I misunderstand the question entirely?

-pete
 
I have never used .dll's before. So I want to know everything, how to build, how the work, where applicable, what benefits they provide etc.
 
you willuse the same header for dll, in dll implementation an in dllusilng. After you compile a dll. will result two files, a .dll and a .lib . When you want to use somethere the dll, link your project with that lib and use the same header for dllapi declaration.

///////yourdll.h
#if !defined(__YOUR_DLL_H)
#define __YOUR_DLL_H
#if !defined(__YOUR_DLL_IMPL_H)
# define dllapi __declspec(dllexport)
# else
# define dllapi __declspec(dllimport)
#endif
dllapi int xxx();//function declaration
class dllapi yyy //class declaration
{

};
#endif
////////yourdll.cpp
#define __YOUR_DLL_IMPL_H
#include "yourdll.h"
int xxx()
{
return 0;
}

/////yourdllusing.cpp
#include "yourdll.h"

....
xxx();
...

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
A crash course on the subject:

A dll is an executeable just like an .exe except it cannt not run as as a stand-alone application (like exe) but only as part of another application.

By the way, I got 431 hits when serching
on "what is a dll"

/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top