// myfirstprj.cpp : Defines the entry point for the application.
//#include "stdafx.h"int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
MessageBox("NULL","Hello World","Myfirstproject",MB_ICONINFORMATION);
return 0;
}
请问以上程序有什么错误吗,编译不能通过,我用的是vc++6.0sp6简体中文企业版?
//#include "stdafx.h"int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
MessageBox("NULL","Hello World","Myfirstproject",MB_ICONINFORMATION);
return 0;
}
请问以上程序有什么错误吗,编译不能通过,我用的是vc++6.0sp6简体中文企业版?
MessageBox(0 ,"Hello World","Myfirstproject",MB_ICONINFORMATION);
"NULL"是字符型
NULL就定义的宏,值为0