Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Stand-Alone Application

Status
Not open for further replies.

QtApprentice

Programmer
Oct 30, 2003
2
US
I have been programming with Qt (a C++ class library used to create GUIs) for over 6 months now, and I am nearing completion of a project for my company. The code is complete, and my final goal in this project is to make the GUI a stand-alone application. I have had a great deal of trouble trying to learn exactly how this is done under Microsoft Visual C++.

Basically, all I want to do is to get this app to run on any Windows machine so the end user doesn't need all the .dlls. How do I go about doing this? Do I need to create a static library for the application and link it to that, or is there a way to have just the .exe run on its own (stand-alone style)?

I don't think knowledge of Qt is necessary. It is only one of the few .dlls I need to link to the application. The following is a list of my system information and programming environment:

-Windows 98
-MS VC++
-*MOCing through moc.exe (using DOS to create the MOC files)

Any information concerning this problem would be greatly appreciated. Thanks!

-Bob Leonard
 
what to do, statically linked or dinamically linked libraries is up to you. I see quite no difference there. Only big applications you will not be able to do without dinamically linked libraries. I'd using of .dll a little is more proffessional than to put everything in a single statically linked .exe.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
I apologize for the misinformation, but I am NOT using DLLs. Actually, I have the static libraries (.lib) for my 3rd party classes. With this in mind, could anyone give me some information as to how I can create a stand-alone .exe in MS VC++? Thanks for the help and response!

-Bob
 
they could be useful only if you have the .h file or at least you know how to declare methods you want to use from them. To link a lib with libname.lib, you can do like this:
#pragma comment( lib, "libname" )

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top