Mission !! Write the object-oriented Windows program with C ++ and Win32 API !!! ~~

xiaoxiao2021-03-06  73

If you think about people who learn Windows programming, they learn the classic Windows C program, see below:

Int WinApi Winmain (Hinstance Hinstance, Hinstance Hprevinstance,

PSTR SZCMDLINE, INT ICMDSHOW)

{

RegisterClass;

CREATEWINDOW;

Showwindow;

UpdateWindow

Messageloop;

}

LResult Callback WndProc (HWND HWND, UINT IMSG, WPARAM WPARAM, LPARAM LPARAM)

{

Switch (Message)

{

Case:

Processing a message;

Break;

.

.

.

}

}

When I learned C , I will continue to use C language win32 SDK after learning this classic Windows C program, write another zero-scattered LRESULT CALLBACK XXXWNDPROC (), one and one definition? Why not write this way Class?

Class Window

{

PUBLIC:

CREATE ();

SHOW ();

protected:

Hwnd hwnd;

/ / Here is an example, not necessarily correct ~~ !!! ~~

}

Why don't we put Win32 API with C this powerful weapon package?

Why do you want to see MFC's face?

Why don't we know what the MFC is secretly doing, still love it?

We are too dependent on MFC !!!!! There are many people can't live !!! ~~~

So, all the revolutionaries of the weapon with C , pick up your gun, pick up your gun, package the win 32 API! ! !

Write your own object-oriented Windows program with C ! ! !

Let China all the programmers who are willing to write their Win32 API libraries, write a C class library of China's Windows32 API, followed by writing a compiler, following an operating system !! ! ~~~

Pick up C this powerful weapon, I believe we can do it !!!!

转载请注明原文地址:https://www.9cbs.com/read-108747.html

New Post(0)