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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
Clifford!i m so thanfull for this assisstance.it was of great help.
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