Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
INPUTrrr0 opened this issue Dec 31, 2020 · 3 comments

Comments

@INPUTrrr0
Copy link

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
Copy link

ehx-v1 commented Dec 31, 2020

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
Copy link
Author

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
Copy link

ehx-v1 commented Jan 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants