Windows core Programming 01-windows applications

Source: Internet
Author: User

Types of Windows applications

-Console Program Console

DOS program, itself without windows, executed through Windows DOS window

-Window Program

Has its own window that can interact with the user

-Library Program

A program that stores code, data, and executable files from which code executes and gets data

-Static Library Program

Extension lib, from which to get code when executing file execution

-Dynamic Library Program

extension DLL, which puts the function address into the execution file when compiling the linked program

Comparison of three different applications

-Entry function

Console program-main

Window Program-winmain

Dynamic Library Program-dllmain

Static Library program-No entry function

-How files exist

console programs, Windows programs-exe files

Dynamic Library Program-dll file

Static Library program-lib file

-Execution mode

Console-Execute within DOS window

Window program--to own the Windows within its own window to execute

Dynamic Library Program-cannot execute itself, called by an executable program or other DLL

Static Library program-execution does not exist, code is embedded in the executable file or DLL

Windows Development tools and libraries

-VC's Compilation tool

compiler CL.EXE to compile source code into target Code (assembly)

Linker LINK.EXE target code, library chain to the final file

The resource Compiler RC.EXE compiles the resource and eventually deposits the final file (. rc) via the linker

-windows Library and header files

-windows Library

Kernel32.dll-provides the core APIs such as processes, threads, memory management, and so on.

User32.dll-provides APIs such as windows, messages, etc.

gdi32.dll-drawing-related APIs

-Header File

windows.h-collection of all Windows header files

Windef.h-windows Data types

Winbase.h-kernel32 's API

WINGDI.H-GID32 's API

Winuser.h-user32 's API

Winnt.h-unicode Character Set support

Windows core Programming 01-windows applications

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.