You have to add the
lib file to your projects settings or use a
pragma
directive in one of your source files (
comment (C-C++)[
^]):
#pragma comment(lib, "[path\]libname")
When creating a DLL project, the corresponding
lib file is created and placed together with the DLL in the project build output directory.
If you don't want to use a
lib file, you can load the DLL during runtime with the
LoadLibrary function (Windows)[
^]. But then you have to declare prototypes for the exported functions and get the function pointers with the
GetProcAddress function (Windows)[
^].