Error creating C++ Project

This error occurs due to a type mismatch during conversion between character strings of different types (TCHAR and ANSICHAR) in Unreal Engine.

  • Check if your project is using the correct character set (Unicode or Multi-Byte). In Unreal Engine, TCHAR is typically Unicode (wide characters).
  • In Visual Studio, go to:
  • Project Properties > Configuration Properties > General > Character Set
  • Select Use Unicode Character Set.
  • The error points to the use of StringCast or a similar function. Verify that the arguments being passed are compatible types (TCHAR or ANSICHAR).

This is from GPT4.0