Menu

problem about hello programme

salman
2008-02-21
2012-09-26
  • salman

    salman - 2008-02-21

    i m new into programming. i successfully installed Dev C++ and compiled and executed
    Hello program successfully. now my question is when i execute this exe file there appears a console window, how can i make it executed in windows application form rather than a console. i did select "Windows Application" option in the project options too but still i get a console appplication. how can i tackle this issue?

     
    • salman

      salman - 2008-02-21

      Clifford!i m so thanfull for this assisstance.it was of great help.

       
    • cpns

      cpns - 2008-02-21

      Console code cannot simply be recompiled and become GUI code. GUI applications are event driven and require a specific message processing framework.

      In Dev-C++ use File->New->Project->Windows Application, this will create a GUI application project with a basic framework.

      You might also look at some of the more advanced examples in the Examples folder. Since you appear to be unaware of the added complexity of GUI code, you are probably in for a shock.

      Note that there are easier ways to produce GUI applications that the basic Win32 API. But in unadorned Dev-C++, that is your only choice. Consider wxDev-C++ which used the WxWidgets library and framework and provides a visual designer. Or VC++ Express edition which provides Windows Forms and the .NET framework (although C++/CLI is not quite your father's C++ - you may as well learn C# instead if you want to do a Windows Forms/.NET application)

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.