I'm trying to build this project from a lecture but ran into a problem. The code I wrote requires me to add msoftcon.cpp and msoftcon.h to the project and I received an error trying to build it.
Mind you it's referring to msoftcon.cpp, which I found and didn't do anything to except update _getch() because the former has been depreciated, but I can't move on until i figure this out.
Code:
'HANDLE CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE)': cannot convert argument 1 from 'const char [8]' to 'LPCWSTR'
Severity Code Description Project File Line Suppression State Details
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "LPCWSTR" (aka "const WCHAR *") Project2 C:\Users\rooth\source\repos\Project2\Project2\msoftcon.cpp 16