解释一下这个c源代码

来源:百度知道 编辑:UC知道 时间:2024/05/22 06:31:57
#include <windows.h>

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); /* Declare Windows procedure */
char szClassName[ ] = "WindowsApp"; /* Class Name */

int WINAPI WinMain(HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nFunsterStil)

{
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
WNDCLASSEX wincl; /* Data structure for the windowclass */

/* The WNDCLASSEX structure */
wincl.hInstance = hThisInstance;
wincl.lpszClassName = szClassName;
wincl.lpfnWndProc = WndProc; /* This function is called by windows */
wincl.style = CS_DBLCLKS; /* Catch double-clicks */
wincl.cbSize = sizeof(WNDCLASSEX);
wincl.hIcon = LoadIcon(

不是吧,这个是Windows编程.
这个程序的作用是创建一个窗口CreateWindowEx,然后显示ShowWindow,最后就是接收消息循环了while(GetMessage(&messages, NULL, 0, 0))

这是vc中的windows编程,你可以找一下孙鑫老师的视频教程看一下

太长了吧……好象是用来修改注册表的

这个是VC++程序的嘛