Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个用 Visual C++ 制作的 winform,我有一些代码:
std::string myString = "My String"; TCHAR myString = _T(myString);
然后我尝试将其输出到 Winform:
TextOut(hdc, 0, 0, myString, _tcslen(myString));
我的错误是 _T 说:“LmyString”未定义
任何帮助都会很棒。
谢谢
mystring是一个std::string。使它成为std::wstring:
mystring
std::string
std::wstring
std::wstring my_str = L"My String";