// declaration
static FString foo(float a, const TCHAR* b);
when ever I add const TCHAR* to my function, I get the following error:
Unrecognized type ‘TCHAR’ - type must be a UCLASS, USTRUCT or UENUM.
Why is this hapening? what’s my mistake?
I don’t think it’s a problem of header including, because I can use TCHAR variable out side the function argument list!
thanks,
well I guess the only reason that it’s not working is that this foo function is a member function of a class that inherets from unreal engine blueprint function library.
Because I guess we can’t expose the TCHAR* to blueprint.
Am I right?
Yes, which means the code you posted isn’t what’s failing to compile; as what you have compiles just fine. It’s the addition of UFUNCTION that prevents it.