最简单的Windows程序

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chengchencheng/article/details/81772850
#include<windows.h>

int WINAPI WinMain(HINSTANCE hInstance,
	               HINSTANCE hPrevInstance,
				   PSTR szCmdLine,
				   int iCmdShow)//必须要的参数
{
	//Windows SDK API函数
	MessageBox(NULL,TEXT("Hello,Windows!"),TEXT("Hello,World!"),MB_OK);
	//NULL没有父窗口,MB_OK显示确定按钮
    return 0;
}

猜你喜欢

转载自blog.csdn.net/chengchencheng/article/details/81772850