I made a dynamic library with compiled headers and compiled a DLL (using Visual Studio 2012).
I also have a C++ project made also with Visual Studio 2012 which i want to reference the previous DLL generated.
How to reference that (Dynamic Lib) DLL in my Visual Studio 2012 C++ project ? Does i also need to point the header file (.h) if i want to use the functions of the library ?
I find it easiest to reference the DLL project using the
Framework and Referencesitem in the project’s properties dialog:It looks like you’re adding some weird .Net thing into your C++ native code, but it’s also the easiest way for a native-code project to reference another.
If you want to call functions in that DLL, then yes, you probably want to include that DLL’s header file.