cannot convert ‘const char*’ to ‘LPCWSTR {aka const wchar_t*}’
The Windows CreateFile function is actually a macro that expands to one of: CreateFileA, which takes a file path of type const char* CreateFileW, which takes a file path of type const wchar_t*. (The same is true for most of the functions in the Windows API that take a string.) You’re declaring the parameter const … Read more