windows控制台程序中使用MessageBox()
如何在windows控制台程序中使用MessageBox()呢?代码如下:
#include <iostream>
#include <windows.h>
int main()
{
::MessageBox(NULL, "我爱你--中国!", "我的誓言", MB_OKCANCEL);
return 0;
}
Project->Settings中,必须设置为“Not using MFC”!
如何在windows控制台程序中使用MessageBox()呢?代码如下:
#include <iostream>
#include <windows.h>
int main()
{
::MessageBox(NULL, "我爱你--中国!", "我的誓言", MB_OKCANCEL);
return 0;
}
Project->Settings中,必须设置为“Not using MFC”!