fork(1) download
  1. FString AMeshOpenFile::OpenFile()
  2. {
  3. TArray<FString> SelectedFiles;
  4. const FString Filter(TEXT("All files (*.*)|*.*"));
  5. bool bFileSelected = FDesktopPlatformModule::Get()->OpenFileDialog(
  6. nullptr,
  7. FString("Choose a file"),
  8. FString(""), TEXT(""), Filter, EFileDialogFlags::None, SelectedFiles
  9. );
  10. GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("This is an on screen message!"));
  11. if (SelectedFiles.Num() > 0)
  12. {
  13. FilePath = SelectedFiles[0];
  14. return SelectedFiles[0];
  15. }
  16. else
  17. {
  18. return FString("");
  19. }
  20. }
  21.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:1: error: unknown type name ‘FString’
 FString AMeshOpenFile::OpenFile()
 ^
prog.c:1:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 FString AMeshOpenFile::OpenFile()
                      ^
stdout
Standard output is empty