Link to home
Start Free TrialLog in
Avatar of LuckyLucks
LuckyLucks

asked on

using dll from another object

Hi

I wanted to use a dll from another project. However this project is external to the visual studio solution that I am currently working on.  It has however been compiled on the same machine.

can i just throw the dll in the executable directory and start using it?

What's the difference between building it/not building it (conceptually)?  I am afraid I do not understand symbols very well.  Would different builds give different symbols for the same functions?

"@jkr  if you decide to use the DLL from the other project: Open the project in Visual Studio and build it. This will create the DLL and a .lib file of the same name. Add that .lib file (the so called "import library") to your project (either by right clicking on your project in the "Solution" tree view or your project's properties under "Linker|Additional libraries" and copy the DLL to your executable's directory to use it and rebuild your project as well."
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial