[Qt-interest] a question about QLibrary

Yifei Li yifli at mtu.edu
Thu Dec 3 23:03:44 CET 2009


Hi,

I tried to mannually load B.dll using QLibrary and that solved my problem.

So does that mean there's no way to load a dll that depends on another dll at runtime without first loading its dependents?

Can anyone give me an answer? Thanks

Yifei
----- Original Message -----
From: "Yifei Li" <yifli at mtu.edu>
To: "qt-interest" <qt-interest at trolltech.com>
Sent: Thursday, December 3, 2009 4:39:02 PM GMT -05:00 US/Canada Eastern
Subject: [Qt-interest] a question about QLibrary

Hi all,

Suppose I have two dlls : A.dll and B.dll.   A.dll is dependent on B.dll. 

I failed to load A.dll into my app using QLibrary, the error message is :
can not load library A.dll: (B.dll: can not open shared object file: No such file or directory)


I tried to put B.dll in the same directory ad A.dll, also tried putting B.dll in the same directory as my application, but still got the same error message.

So can anyone tell me the correct way to load a dll that depends on another dll at run-time?

Thanks

Yifei
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



More information about the Qt-interest-old mailing list