You should have received at least three files from the owner of the DLL. The DLL you will need at runtime, an .h file with declarations of exported functions, you already have. And the .lib file, the import library for the DLL. What the linker requires, so it knows how to add functions to the program import table.
You are missing the step where you told the linker that it needed to link the .lib file. It must be added to the configuration of the Input + Additional Dependencies linker of your project. Or the easiest way to do this is by writing the linker instructions in the source code:
#include "foo.h" #pragma comment(lib, "foo.lib")
Which works for MSVC but is not portable, but binding is never. Copy the .lib file to the project directory or specify the full path.
Hans passant
source share