巫师2女魅魔在哪里:Windows API 的问题

来源:百度文库 编辑:高校问答 时间:2024/07/02 17:18:50
#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"