Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3046

[RESOLVED] msoftcon.h error

$
0
0
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.

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

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.

Viewing all articles
Browse latest Browse all 3046

Trending Articles