question

Filip-2434 avatar image
0 Votes"
Filip-2434 asked Filip-2434 action

C++ const char error

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++
b.png (70.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DavidLowndes-6766 avatar image
0 Votes"
DavidLowndes-6766 answered DavidLowndes-6766 edited

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.