Window Program Design 1. window Program Design

Source: Internet
Author: User

Window Program Design 1. window Program Design

Int WINAPI WinMain (HINSTANCE HInstance, HINSTANCE HPreInstance, LPSTR sz1_line, int CmdShown)

{

MassageBox (NULL, TEXT ("hello"), TEXT ("window program"), MB_ OK );

}

HInstance: handle instance (the process generated by the running program. The handle is an instance of the running program and uniquely identifies it)

Module: exe and dll files in the running program (called when the program is loaded into the memory) Note: Some dll files contain a pi function, also known as the module handle. (Public win16: When an executable file is loaded multiple times, a module exists)

(Win32 or 64: The instance handle is the module handle)

PreInstance: determines whether other program instances are in progress and port the previous instance to your data zone.

SzCmdLine: Command Line for loading files to memory when the program is running

NCmdShow: the initial display method of the program

MassageBox: dialog box function (NULL: parent window handle, subject string, title bar string, OK button)

 

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.