You don't link the dll -- only the *.lib. One way to do it is by using pragma #pragma comment(lib,"mydll.lib") Replace mydll.lib with whatever you named it.
You will have to put the dll in either the program's current working directory or one of the folders specified in the PATH environment variable.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343