PDA

View Full Version : How to use dll on Windows.



merry
21st April 2008, 11:34
Hi all

Working on Qt4.3.4 on Windows XP, I want to use dll with Qt , but dont know how to use.

Regards
Merry

momesana
21st April 2008, 15:03
What do you mean with "use"? could you please be more specific?
If you mean using the Qt dlls and plugins, you could put the dll's QtGui4.dll, QtCore4.dll etc. in the same directory as your .exe file. This way they would be found by the application on startup. There are other ways to achieve this though. There are also QLibrary and QPluginLoader that enable you to load dll's at runtime. Read the respective documentation to get more details:

http://doc.trolltech.com/4.3/deployment.html
http://doc.trolltech.com/4.3/qlibrary.html
http://doc.trolltech.com/4.3/qpluginloader.html#details