Difference between WIN32 Application and WIN32 Console Application wizard
-
HI, Could you please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard provided in VC++ (New -> Projects tab) wizards Thanks Regards.
The difference is that AppWizard generates a different stdafx.h for the two project types. For a Win32 app, stdafx.h includes windows.h , but for a Win32 console app stdafx.h does not include windows.h. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
The difference is that AppWizard generates a different stdafx.h for the two project types. For a Win32 app, stdafx.h includes windows.h , but for a Win32 console app stdafx.h does not include windows.h. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
HI, Could you please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard provided in VC++ (New -> Projects tab) wizards Thanks Regards.
The system creates a new console when it starts a console process, a character-mode process whose entry point is the main function. For example, the system creates a new console when it starts the command processor. When the command processor starts a new console process, the user can specify whether the system creates a new console for the new process or whether it inherits the command processor's console. A process can create a console by using one of the following methods: -A GUI or console process can use the CreateProcess function with CREATE_NEW_CONSOLE to create a console process with a new console. (By default, a console process inherits its parent's console, and there is no guarantee that input is received by the process for which it was intended.) -A graphical user interface (GUI) or console process that is not currently attached to a console can use the AllocConsole function to create a new console. (GUI processes are not attached to a console when they are created. Console processes are not attached to a console if they are created using CreateProcess with DETACHED_PROCESS.) Currently I am working as software engineer at Network System Technologies Pvt. Ltd (NeST). Most of my project are in C++. Most interesting are is GUI programming.
-
zahid_ash wrote:
What the windows.h file makes diference in developement or programming
Yes if you want to Windows based GUI apps. Otherwise you'll get errors
-
The system creates a new console when it starts a console process, a character-mode process whose entry point is the main function. For example, the system creates a new console when it starts the command processor. When the command processor starts a new console process, the user can specify whether the system creates a new console for the new process or whether it inherits the command processor's console. A process can create a console by using one of the following methods: -A GUI or console process can use the CreateProcess function with CREATE_NEW_CONSOLE to create a console process with a new console. (By default, a console process inherits its parent's console, and there is no guarantee that input is received by the process for which it was intended.) -A graphical user interface (GUI) or console process that is not currently attached to a console can use the AllocConsole function to create a new console. (GUI processes are not attached to a console when they are created. Console processes are not attached to a console if they are created using CreateProcess with DETACHED_PROCESS.) Currently I am working as software engineer at Network System Technologies Pvt. Ltd (NeST). Most of my project are in C++. Most interesting are is GUI programming.
There are two major differences between Win32 console and Win 32 application. 1.If it is win32 console application,
mainCRTStartup()
gets called first,which inturn callsmain()
method. If it is win32 application,thenWinMainCRTStartup()
gets called as Entry point ,which in turn callsWinMain
2.Under compiler settings, the/subsystem
flag is set to/subsystem:windows
for Win32 application,/subsystem:console
for Win32 console application. Appu.. "If you judge people, you have no time to love them." -
HI, Could you please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard provided in VC++ (New -> Projects tab) wizards Thanks Regards.
zahid_ash wrote:
please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard
Simple. Win32 app creates a MSWindows type interface and Win32 Console Application creates a MSDOS (Similar to command prompt). http://www.sunlightd.com/Windows/FAQ.html#ConsoleIntro[^]
-
HI, Could you please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard provided in VC++ (New -> Projects tab) wizards Thanks Regards.
zahid_ash wrote:
...what is the diference between WIN32 Application and WIN32 Console Application wizard...
The former creates a Win32 application while the latter creates a console application. I'm assuming you know the difference betweeen a Win32 application and a console application, yes?
"The largest fire starts but with the smallest spark." - David Crow