Your code is incorrect. testFunc() is defined in the header, it is part of the application that includes the header file so you can't dllimport it. Move the definition to the cpp file and it should work.
Thanks! That will teach me for trying to code it up quickly!
Bookmarks