error C2664: “StrCmpW”: 不能将参数 2 从“const char [12]”转换为“PCWSTR”

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error C2664: “StrCmpW”: 不能将参数 2 从“const char [12]”转换为“PCWSTR”相关的知识,希望对你有一定的参考价值。

  • 具体代码:
#define KEY_FILE_RAPID_MENU_EXE "RapidMenu.exe"

if (StrCmp(pe.szExeFile, KEY_FILE_RAPID_MENU_EXE))
  • 解决办法
#define KEY_FILE_RAPID_MENU_EXE "RapidMenu.exe"

if (StrCmp(pe.szExeFile, TEXT(KEY_FILE_RAPID_MENU_EXE)))

以上是关于error C2664: “StrCmpW”: 不能将参数 2 从“const char [12]”转换为“PCWSTR”的主要内容,如果未能解决你的问题,请参考以下文章

C++调试 错误error C2664 er ror C2440 求帮主

求助:error C2664: “CreateWindowExW”: 不能将参数 3 从“const char [8]”转换为“LPCWSTR”

VS2012 error C2664: “std::make_pair”:无法将左值绑定到右值引用

error C2664: “int CWnd::MessageBoxW(LPCTSTR,LPCTSTR,UINT)”: 无法将参数 1 从“const char [9]”转换为“LPCTSTR”

解决error C2664: no instance of constructor "CFileDialog::CFileDialog" matches the list

解决error C2664: no instance of constructor "CFileDialog::CFileDialog" matches the list