const char* bufmessage = PlayerLocation;
int sendOK = sendto(out, bufmessage, strlen(bufmessage), 0, (sockaddr*)&server, sizeof(server));
没有合适的FString到常量字符的转换*
发布于 2021-01-27 20:11:07
const FString message = "whatever";
std::string msg(TCHAR_TO_UTF8(*message));
const char* chars = msg.c_str();
https://stackoverflow.com/questions/61379498
复制相似问题