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

wchat_t* incompatible with LPCSTR #6

Open
ArjunDeshmukh opened this issue Feb 2, 2020 · 2 comments
Open

wchat_t* incompatible with LPCSTR #6

ArjunDeshmukh opened this issue Feb 2, 2020 · 2 comments

Comments

@ArjunDeshmukh
Copy link

Getting this error after building:
argument of type wchar_t* incomparible with LPCSTR in function call:
Line 279 - WriteConsoleOutputCharacter(hConsole, screen, nScreenWidth * nScreenHeight, { 0,0 }, &dwBytesWritten);
screen is of data type wchar_t*
The function expects 2nd argument of type LPCTR

@nicholaswurth
Copy link

Use WriteConsoleOutputCharacterW(); instead of WriteConsoleOutputCharacter();

@TusharDhanai
Copy link

Tried WriteConsoleOutputCharacterW();. Gives ⒐cᴐ. No idea what this means.

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

3 participants