HackerPoet / NonEuclidean

A Non-Euclidean Rendering Engine for 3D scenes.
MIT License
6.1k stars 581 forks source link

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

Open INPUTrrr0 opened 3 years ago

INPUTrrr0 commented 3 years ago

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!

ehx-v1 commented 3 years ago

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.

INPUTrrr0 commented 3 years ago

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!

ehx-v1 commented 3 years ago

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.