我正在研究非常古老的 C++ 项目。在 Visual Studio 6 中构建我的 C++ 代码时,我收到错误"cannot convert from 'unsigned short [9]' to 'char []'"。
对于下面的代码:
char variable[] = _T("something");
我用谷歌搜索并试图理解这个问题。这可能是我构建它的方式。
我已经尝试过https://mihai-nita.net/2006/07/23/visual-studio-unicode-projects/中编写的步骤(在预处理器中添加UNICODE
& _UNICODE
)。如果有人可以建议解决此错误的解决方案,那将非常有帮助。