The difference between Win32 application and WIN32 Console application

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.