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

Iinking a .lib file in microsoft visual c++?

Status
Not open for further replies.

sykpth

Programmer
Jul 13, 2006
1
US
I am writing a program that uses certain functions that are in a .dll written by someone else. I was given the .lib, .dll and .exp files. I was told that all I needed to do was link the .lib file to my program in order for my program to use the functions in the dll.

Is it that simple? If so how do I link the .lib file to my program or project?
I tried the MS help but it wasnt that useful. And couldn't find any helpful material online either.
 
There are tons of dll using info in MSDN (search by linking, dll etc).
Add the import library (lib) to your project (see Project|Setting Link Object/library modules text box).
Of course, you must have .h header with dll functions prototypes to compile your sources with dll function calls.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top