NonEuclidean icon indicating copy to clipboard operation
NonEuclidean copied to clipboard

argument of type "const char *" is incompatible with parameter of type "LPCWSTR'

Open INPUTrrr0 opened this issue 4 years ago • 3 comments

Hello, I ran into these errors in Engine.cpp around line 343 to line 394. Specifically for " wc.lpszClassName = GH_CLASS;" . Is this a VS code problem? I am not super familiar with cpp so im not sure what's the cause of this problem nor how to fix it :( Thanks!

INPUTrrr0 avatar Dec 31 '20 08:12 INPUTrrr0

LPCWSTR is most definitely a VS Code type. If you're trying to compile with G++ or something, that's most likely the cause. Other programming languages have that phenomenon as well, where unknown types are "incompatible" with everything that looks different and it hides the error that the type is unrecognized.

ehx-v1 avatar Dec 31 '20 12:12 ehx-v1

LPCWSTR is most definitely a VS Code type. If you're trying to compile with G++ or something, that's most likely the cause. Other programming languages have that phenomenon as well, where unknown types are "incompatible" with everything that looks different and it hides the error that the type is unrecognized.

Thank you for your reply! Should I not use G++ to compile? What else should I use to compile it? Thanks so much and happy holidays!

INPUTrrr0 avatar Dec 31 '20 20:12 INPUTrrr0

You shouldn't try to compile VS Code with anything other than Visual Studio. There's always a good chance the code uses proprietary features that no other compiler can handle.

ehx-v1 avatar Jan 06 '21 14:01 ehx-v1