I have error, see:
When i add there this variable it will work but can i fix it without adding these variables?
Thanks for answare.
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.
8 people are following this question.