In the project I use only Use Multi-Byte Character Set, that is, ASCII. In Debug build mode, everything works fine. But, switching to Release, there are many errors associated with converting char -> wchar_t. The settings are ASCII and all the code is ASCII, but the collector for Release collects everything as Unicode. Who is guilty ?

The project encoding is set in Properties -> General -> Projects Defaults, which seems to be for all assemblies.

Project Type Visual C ++ Win32 Console Application.

    1 answer 1

    Projects Defaults are the project settings in the current configuration, which you can select at the top of the window. There you have a Debug , but you need to select Release and set appropriate parameters for it, or select All Configurations and assign parameters common to all types of build.