why the dll file isn't loaded?
i want to load a dll file to my program,but it not have been loaded..
the code as below:
QLibrary hMod ("CoreDll");
bool ok= hMod.isLoaded();
the ok var is always false..
there is anybody who knows why it happens?
What I encountered is that the automatic search function of QLibrary didn't do what I expected. It needed the .dll postfix.
Also make really sure your library is in the same folder as your executable. So if in de debug mode, place it in the shadow build debug folder. It will not look into your project folder when you build shadow builds.
i did it and it doesn't works yet.. the dll don't loaded
the dll created in VS, maybe it's the problem?...
i loaded the library and it works,the dll was loaded.
but, the function that i want to run throws segmentation fault ..
What compiler did you use to create the DLL and which one are you using for your application ?
how can i know it?
the dll compilied in VS 2008 and the app in qt 5.3.1
So, is the your Qt 5.3.1 also compiled with VS2008 ?
Yes it should.
Visual Studio rule number one: Everything must be compiled with the same version of Visual Studio.
The different versions of Visual Studio are not compatible one with the other.