including library and dll into c++ project
Posted
by
user1612986
on Stack Overflow
See other posts from Stack Overflow
or by user1612986
Published on 2012-10-10T15:33:44Z
Indexed on
2012/10/10
15:36 UTC
Read the original article
Hit count: 145
i have a third party library (say tp.lib) and the third party dll (say tp.dll) which i need to use in my C++ project (my project is a dll project, lets call it my.dll).
i have include the library with the #pragma comment(lib, "libraryname") in the header file and also included the path of the library file in the configurationproperties->linker->additional library directories in my c++ visual studio project.
the code compiles okay. but fails to execute. when i use depends to check if i am missing someting i observe that the tp.dll is missing from my.dll.
the tp.dll resides in the same library folder where the tp.lib resides.
my quesiton is what should i do so that tp.dll get included to my.dll
thanks in advance
© Stack Overflow or respective owner