PDA

View Full Version : QLibrary resolve problem



Nippler
4th December 2008, 15:37
I have a dll which I should use in my QT application. I can load the library with QLibrary and if I want to resolve a symbol it gets me symbols back from the dll but not the one I requested.

For example myLib.dll has two functions (getValue and setValue).
If I bind the library and then make the following statement
typedef int (__stdcall *GetValue)();
GetValue rxServerFunc6 = (GetValue) myLib.resolve("getValue");

it gives me the setValue function back (that can I see if I debug). If I include the dll in a Visual C++ project it works perfect.

How can I solve that?