最简单的Win32程序示例:
#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
PSTR szCmdLine,
int iCmdShow)
{
MessageBox(NULL, "Hello, Win32!", "问候", MB_OK) ;
return 0 ;
}
int WINAPI WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
PSTR szCmdLine,
int iCmdShow)
{
MessageBox(NULL, "Hello, Win32!", "问候", MB_OK) ;
return 0 ;
}
本文转自wintys 51CTO博客,原文链接:
http://blog.51cto.com/wintys/92287