Win32 Application and Win32 Console application are all programs that work in a 32-bit Windows environment.
WIN32 application is a common window application, of course, some of the interface is more personalized, such as round,
Irregular shape of ... They are all called GUI (graphics user interface GUI), we can use the mouse point
Click to complete the control.
the WIN32 Console Application (Win32 Console application) is often like an MS-DOS window (called a command prompt in XP)
we have to use the keyboard to enter a variety of commands, or Cui (Character user Interface character interface).
the difference between WIN32 application and Win32 console application in VC6:
Many VC beginners may often encounter the following link error:
linking .../subsystem:windows
LIBCD.lib (wincrt0.obj): Error lnk2001:unresolved external symbol WinMain @16
debug/testwin.exe:fatal error lnk1120:1 unresolved externals
Error executing link.exe.
The workaround is to change the/subsystem:windows in the Project-settings-link project options
into/subsystem:console
Cause: The entry function for WIN32 application is WinMain
the entry function for WIN32 Console application is main
In other words, if you write a traditional C program, you must establish the WIN32 console program, but the VC inside the default is Win32
application, so the link errors mentioned above are often present. And the difference between WIN32 application and Win32 console
is the VC in the link parameter is different.
someone asked how to make the console application run completely and automatically close its window.
MS-DOS Windows only appear at debug time, after compiling, the compilation file is run directly, and the window closes automatically when the file is closed.