3,972 questions
You have a Unicode build, you need to use L"strings", or _T("string") if you want your code to be Unicode/MBCS compatible.
And your char uses should be wchar_t or TCHAR (Unicode/MBCS compatible code), particularly if you're dealing with file names that could have non-locale characters.