我将项目从 Visual Studio 转移到 QT,当项目构建时显示错误。如何在不对代码进行重大更改的情况下修复它们?
cannot convert 'const wchar_t*' to 'TCHAR*'
cannot convert '_TCHAR*' to 'const wchar_t*'
cannot convert 'const wchar_t [15]' to 'TCHAR*'
cannot convert 'TCHAR*' to 'const wchar_t*'
...
几十个这样的错误。
PS 奇怪的是,谷歌在这个问题上没有任何有用的结果。