1 /*
 2 调用消息框    MessageBox API
 3 [peoject->set->link->project chose->subsystem:windows]
 4 */
 5 #include<windows.h>
 6 #pragma comment(lib,"User32.lib")
 7 int WinMain(HINSTANCE hInstance,
 8             HINSTANCE hPrevInstance,
 9             LPSTR lpCmdLine,
10             int nCmdShow
11             )
12 {
13     MessageBox(NULL,
14         TEXT("开始学习Windows编程"),
15         TEXT("消息对话框"),
16         MB_OK);
17     return 0;
18 }

 

相关文章:

  • 2021-07-14
  • 2021-08-28
  • 2022-12-23
  • 2021-07-11
  • 2021-08-20
  • 2022-12-23
  • 2021-11-19
  • 2021-10-29
猜你喜欢
  • 2022-12-23
  • 2021-08-29
  • 2021-08-22
  • 2022-02-16
  • 2021-05-24
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案