C++ const char error

Filip 831 Reputation points
2021-04-09T20:11:50.49+00:00

Hello everybody.
I have error, see:
When i add there this variable it will work but can i fix it without adding these variables?
86432-b.png
Thanks for answare.

Developer technologies C++
0 comments No comments
{count} votes

Accepted answer
  1. David Lowndes 4,726 Reputation points
    2021-04-09T20:14:41.737+00:00

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.