I’m trying to launch nDisplayLauncher.exe and nDisplayListener.exe
FReply FVP_InitializerModule::LaunchNDisplay()
{
FString Path = FString(FPaths::EngineDir() + "Binaries/DotNET/");
FString LauncherPath = Path + "nDisplayLauncher.exe";
FString ListenerPath = Path + "nDisplayListener.exe";
FPlatformProcess::CreateProc(*LauncherPath
, nullptr, true, false, false
, nullptr, 0, nullptr, nullptr);
FPlatformProcess::CreateProc(*ListenerPath
, nullptr, true, false, false
, nullptr, 0, nullptr, nullptr);
return FReply::Handled();
}
nDisplayLauncher.exe can run, but nDisplayListener.exe won’t
I also try using system() to execute
system(TCHAR_TO_ANSI(*(ListenerPath)));
It show up and disappear immediately
Can anyone please tell me where is the problem?