OneLoneCoder / CommandLineFPS

A First Person Shooter at the command line? Yup...
604 stars 172 forks source link

wchat_t* incompatible with LPCSTR #6

Open ArjunDeshmukh opened 4 years ago

ArjunDeshmukh commented 4 years ago

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 commented 4 years ago

Use WriteConsoleOutputCharacterW(); instead of WriteConsoleOutputCharacter();

TusharDhanai commented 3 years ago

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