including library and dll into c++ project
- by user1612986
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