64,691
社区成员
发帖
与我相关
我的任务
分享
#pragma once
#include <tchar.h>
#include <string>
#ifdef _UNICODE
#define tstring std::wstring
#else
#define tstring std::string
#endif
CStringA sa = "aaa bbbb";
string str(sa.GetBuffer());
sa.ReleaseBuffer();
cout<<str;
CStringW sw = L"aaa bbbb";
wstring wstr(sw.GetBuffer());
sw.ReleaseBuffer();
wcout<<wstr;