I have looked online and found many threads started by people with this same problem, but none of the solutions on those threads have worked for me or the problem was never resolved.
It compiles correctly, but when I type_cast line as LPCWSTR, it turns to junk. I've tried using LPCSTR and LPCTSTR but neither work. For instance, I get the following error message when I use LPCSTR in place of LPCWSTR:
cannot convert parameter 2 from 'LPCSTR' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Or, when I keep it as LPCWSTR and try to declare line as type std::wstring, I get a bunch of error messages concerning getline:
see declaration of 'std::getline'
1> could be 'wchar_t'
1> or 'char'
I have no clue what to do anymore. Please help. Thank you.
EDIT: Nevermind. Got it to work. Had to use std::wcin.