argument of type const char* is incompatible with parameter of type “LPCWSTR”

前端 未结 3 1984
时光取名叫无心
时光取名叫无心 2020-12-05 23:54

I am trying to make a simple Message Box in C in Visual Studio 2012, but I am getting the following error messages

argument of type const char* is incompat         


        
3条回答
  •  暖寄归人
    2020-12-06 00:00

    To compile your code in Visual C++ you need to use Multi-Byte char WinAPI functions instead of Wide char ones.

    Set Project -> Properties -> General -> Character Set option to Use Multi-Byte Character Set

    I found it here https://stackoverflow.com/a/33001454/5646315

提交回复
热议问题