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."
Visual C++.NET

Avatar of undefined
Last Comment
sarabande

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
sarabande

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes