problem in using dll file...
-
i want some problem in read dll file
i see this movie
use dll file
www.youtube.com/watch?v=9JTooLxhmC0
but i have problem in reading dll file
my issue is :
D:\MyLib.dll:-1: error: LNK1107: invalid or corrupt file: cannot read at 0x2F0
but in movie ...
he dont have any problem!can any one help me?
thanks -
Hi, the reason the guy in the movie doesn't have the same problem, I think it's because he's using the MinGW compiler and you are using the MSVC compiler.
In your .pro file for your project, where you specify the LIBS to be included, when using the MSVC compiler, you have to specify the MyLib.lib file and not the MyLib.dll file. For example, if you specified:
LIBS += "D:\\MyLib.dll"
instead try
LIBS += "D:\\MyLib.lib"