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

DLL

Status
Not open for further replies.

MarkLaz

Technical User
May 20, 2005
12
GB
Hello all,

Simple question for you I guess. I have a header file, a dll and a library file (all supplied by a third party) that I want to include and use in my code. How do I do it? I'm new to it (can you tell?) so a dummies guide would be much appreciated.

Cheers

Mark
 
In the code, #include the header
In the link, add the lib
Make sure the directory containing the DLL is in your PATH.
 
Does the header need to be anywhere in particulare on the system?
 
As long as your code can get to it. You can always add it to the header search path.

VS6 Right Click on SourceFiles
Settings...
C++
Preprocessor

Add the include directory path to "additional include directories"

VS.net and VS.net2003 Same as VS6 but select Properties... instead of Settings...
 
Thanks for the help! I have it working now. It might just be me but I couldn't find such a succint explanation on the web. Prior knowledge is always assumed in this world!

Thanks again...

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top