Answers for "error C4840: non-portable use of class 'FString' as an argument to a variadic function"

C++
1

error C4840: non-portable use of class 'FString' as an argument to a variadic function

Dereference the string.
Instead of
UE_LOG(LogTemp, Warning, TEXT("%s"), MyString);
Instead do
UE_LOG(LogTemp, Warning, TEXT("%s"), *MyString);
Posted by: Guest on July-18-2021

Code answers related to "error C4840: non-portable use of class 'FString' as an argument to a variadic function"

Browse Popular Code Answers by Language