Does anyone know how to add custom .dll and .h files to projects in Visual C++ 2008?

Recommended Answers

All 4 Replies

Do you want static linking or dynamic linking? Such as do you want to link with the *.lib that came with the *.dll (if there was one), or use LoadLibrary() to load the DLL into memory?

I will be using the .lib that came with the .dll

I tried adding the path under Project->properties->references, but to no avail.

Add the directory that the lib is in under Project, Properties, Configuration Properties, Linker, Additional Library Directories and add the name of the lib into Project, Properties, Configuration Properties, Linker, Input, Additional Dependencies.

When debugging you may have to set the Project, Properties, Configuration Properties, Debugging, Working Directory to the directory that contains the dll files.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.