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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I add a statically linked dll to my project?

Status
Not open for further replies.

Vovin

Programmer
Aug 24, 2003
63
GB
I downloaded an evaluation version of a product called iSEDQuickPDF. There is a choice of downloading an activeX component, a dll, or a statically linked dll.

Couldn't get the ActiveX component to work so I downloaded statically linked dll. The following 3 files were in the zip file:
iSEDQuickPDF.h
iSEDQuickPDF.dll
iSEDQuickPDF.def

I usually include the header file and link to a .lib file but there is no .lib file. How do I add this to my project? Once it's added how do I go about using it? Can anyone help me with this or point me towards a relevant tutorial? Any help would be much appreciated.
 
An executable file links to or loads a DLL in one of two ways:
1.Implicit linking
The following are required from the provider of the DLL:
A .H file which contains the declarations of the exported functions and/or C++ classes.
A library .LIB file(s) to link with.
The actual .DLL file

2.Explicit linking
Using LoadLibrary(), GetProcAddress() etc...
It will load .DLL at run time only.
-obislavu-
 
Thanks obislavu,

I managed to work it out. I just went into Tools->Options->Directories and added the path to the header files and the library files.

I knew it was something like that. I don't know why Microsoft hid it away under this menu item. Since when was a header file a tool?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top