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.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,532 questions
0 comments No comments
{count} votes

Accepted answer
  1. David Lowndes 4,711 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