CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Posts
    92

    Question 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

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Convert Console Apps to GUI Apps

    Quote Originally Posted by Panarchy View Post
    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

  3. #3
    Join Date
    Mar 2010
    Location
    Melbourne Australia
    Posts
    454

    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.

  4. #4
    Join Date
    Jan 2009
    Posts
    1,689

    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
  •  





Click Here to Expand Forum to Full Width

Featured