1 // ATL_Convert.cpp : 定义控制台应用程序的入口点。
 2 //
 3 
 4 #include "stdafx.h"
 5 #include <iostream>
 6 #include <atlconv.h>
 7 #include <tchar.h>
 8 #include <stdio.h>
 9 
10 
11 //USES_CONVERSION; //使用ATL字符转换宏
12 
13 int _tmain(int argc, _TCHAR* argv[])
14 {
15     char a[12] = "china";
16     USES_CONVERSION;
17     ::MessageBoxW(NULL, A2W(a), L"",MB_ICONASTERISK | MB_TASKMODAL | MB_OK);
18     system("pause");
19     return 0;
20 }
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-07-23
  • 2022-01-08
  • 2021-12-27
  • 2021-12-25
  • 2022-01-03
猜你喜欢
  • 2021-06-05
  • 2021-12-06
  • 2022-12-23
  • 2021-08-30
  • 2021-12-02
  • 2021-05-08
相关资源
相似解决方案