PDA

View Full Version : making .dll file



omprakash
29th July 2008, 18:10
dear friends
i want to create a .dll file instead of normal exe file .
i have my .h files and . cpp files..
what should i do to create the .dll file instead of normal exe file..
plz help...

jpn
29th July 2008, 18:51
Building a Library (http://doc.trolltech.com/4.4/qmake-common-projects.html#building-a-library)
TEMPLATE (http://doc.trolltech.com/4.4/qmake-variable-reference.html#template)

omprakash
29th July 2008, 19:15
thanx
i have created the .dll file.
now i want to use that dll file in my another application.
So in my another application how to use this dll file.
What are the variables to set to which value such that in my another application i can use this dll file and i can also use the classes defined in the dll file..
plz help..

jpn
29th July 2008, 19:49
To link to the library you'd add the library to a variable called LIBS (http://doc.trolltech.com/4.4/qmake-variable-reference.html#libs). To be able to include header files of the library, you might also want to add suitable path to a variable called INCLUDEPATH (http://doc.trolltech.com/4.4/qmake-variable-reference.html#includepath).