joeblackzqq

如何在windows控制台程序中使用MessageBox()呢?代码如下:

#include <iostream>
#include <windows.h>

int main()
{
	::MessageBox(NULL, "我爱你--中国!", "我的誓言", MB_OKCANCEL);

	return 0;
}

Project->Settings中,必须设置为“Not using MFC”!

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-07-23
  • 2021-06-03
  • 2021-08-30
  • 2021-07-12
  • 2021-09-15
猜你喜欢
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2021-11-17
  • 2021-12-06
  • 2021-12-03
  • 2021-07-08
相关资源
相似解决方案