-
August 12th, 2010, 10:09 AM
#1
Convert Console Apps to GUI Apps
Hello!
I've been learning how to code C++, but entirely Console apps!
Can you tell me how I can convert Console apps into GUI apps?
[Only using libraries built into Dev-C++ {yes, I know it's a pain!}]
Thanks in advance,
Panarchy
-
August 12th, 2010, 10:54 AM
#2
Re: Convert Console Apps to GUI Apps
Originally Posted by Panarchy
Hello!
I've been learning how to code C++, but entirely Console apps!
Just a thought for you -- there are programmers with decades of experience who have always written console apps and have never written a GUI app in their programming lives.
A console app can be as easy as a "Hello World" program, or as complex as an operating system, so there is no shame if all you have done are console applications.
Can you tell me how I can convert Console apps into GUI apps?
What do you really mean by "convert"?
You have to either learn how your OS does GUI, or get a library that does the GUI using simplified function calls, classes, structures, etc. Something like QT or similar libraries.
Only using libraries built into Dev-C++ {yes, I know it's a pain!}
Dev-C++ is not a compiler it is an IDE. The compiler that is used by Dev-C++ is a flavor of g++ from Gnu. Therefore the libraries are compatible with any IDE that handles g++/MingW. For example, CodeBlocks is such an IDE that uses g++.
Regards,
Paul McKenzie
-
August 12th, 2010, 11:47 AM
#3
Re: Convert Console Apps to GUI Apps
GUI apps are very different from console , Implementation of GUI apps also differ from OS to OS,
Essentially under win32 a GUI app is endless loop , waiting for user input. There are few GUI toolkit out there , under Dev++ there is wxWidgets, However my recommendation to you is to start with QT from Nokia , IT is free to use and download and comes with it own IDE , very easy to use
link
http://qt.nokia.com/products/
once you have set it up go to youtube and search for tutorials on QT to get you started.
-
August 12th, 2010, 01:22 PM
#4
Re: Convert Console Apps to GUI Apps
I'll bet that non-gui apps make up the majority of what's written.
wxWidgets is nice, there might still be a dev pack for it for Dev-C++, but it'll be an old version. I recommend learning how to install libraries properly.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|