I'm new C++, I have a dll file called DiceInvaders.dll
, in my project, I need to use this library, I'm using visual c++ 2010, I set the Linker
Input
as DiceInvaders.lib
and DiceInvaders.dll
, I also copied this dll file to my porject directory, I always got error in this line of code:
m_lib = LoadLibrary("DiceInvaders.dll");
assert(m_lib);
The error is assertion failure. How should I solve this? Thank you in advance.