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
Printable View
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
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.
What do you really mean by "convert"?Quote:
Can you tell me how I can convert Console apps into GUI apps?
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.
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++.Quote:
Only using libraries built into Dev-C++ {yes, I know it's a pain!}
Regards,
Paul McKenzie
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.
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.