非诚勿扰2009第一期:Windows API 的问题

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 18:23:43
#include <windows.h>

APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int CmdShow)
{
MessageBox(NULL,"Hello,World!","第一个Windows C程序",MB_OK|MB_ICONASTERISK);
}

这个程序怎么错了

编译可以通过,连接时错误

#include "stdafx.h"