Hi. Im new to C++ and this question might sound really noobie but do all finished projects that have been compiled open in the cmd? Can you change this? Sorry if this sounds really retarded but im only new to this. Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-07-17
No, none of them do!
cmd.exe is the Windows command line processor. It is a console mode application. The projects you are referring to do not "open in cmd", but they are console mode applications as well. You can of course run your console mode application from within cmd.exe, but you can equally launch it from the IDE or from Explorer or whatever.
If you are asking, can you only produce console mode application switch Dev-C++, then the answer is no, you can produce GUI applications as well. Dev-C++ however does not provide any "Visual" tools for doing so. If this was your question, a quick exploration of Dev-C++ would have answered it: Go to File->New->Project, you will see a tabbed dialog with each tab showing groups of application types and artefacts you can build form the IDE. This dialog is customisable, and you can add your own project templates, and some DevPaks add templates. Any hoe, you will see here that one of the templates is a Windows GUI application. Select and build that, and you will see that it creates a window. The template provides the basic framework for a Win32 GUI application.
Also in the Examples folder of your Dev-C++ installation, there are a number of more complete GUI examples you can build.
If you want a more "Visual" development approach, then consider the derivative wxDev-C++ which adds a GUI designer and class library to Dev-C++. Alternatively for Windows Forms/.NET development, use Visual C++ or C# Express Editions, free from Microsoft.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. Im new to C++ and this question might sound really noobie but do all finished projects that have been compiled open in the cmd? Can you change this? Sorry if this sounds really retarded but im only new to this. Thanks
No, none of them do!
cmd.exe is the Windows command line processor. It is a console mode application. The projects you are referring to do not "open in cmd", but they are console mode applications as well. You can of course run your console mode application from within cmd.exe, but you can equally launch it from the IDE or from Explorer or whatever.
If you are asking, can you only produce console mode application switch Dev-C++, then the answer is no, you can produce GUI applications as well. Dev-C++ however does not provide any "Visual" tools for doing so. If this was your question, a quick exploration of Dev-C++ would have answered it: Go to File->New->Project, you will see a tabbed dialog with each tab showing groups of application types and artefacts you can build form the IDE. This dialog is customisable, and you can add your own project templates, and some DevPaks add templates. Any hoe, you will see here that one of the templates is a Windows GUI application. Select and build that, and you will see that it creates a window. The template provides the basic framework for a Win32 GUI application.
Also in the Examples folder of your Dev-C++ installation, there are a number of more complete GUI examples you can build.
If you want a more "Visual" development approach, then consider the derivative wxDev-C++ which adds a GUI designer and class library to Dev-C++. Alternatively for Windows Forms/.NET development, use Visual C++ or C# Express Editions, free from Microsoft.
Clifford