Hi,
I tried looking for the answer but so far I haven't been able to find one.
Does anyone know how to cancel an existing flight plan from SimConnect? So far we use SimConnect's scenario function SimConnect_FlightPlanLoad to load a flight plan but if the user wants to cancel, we want to be able to do so from SimConnect as well.
Thanks,
Austin
Cancel Flight Plan from SimConnect
Re: Cancel Flight Plan from SimConnect
Hi,
Thanks for your reply. Do you mean load in a NULL file? Can I trouble you with an example?
Is it like this?
HRESULT SimConnect_FlightPlanLoadW(
HANDLE hSimConnect,
const wchar_t* szFileName
);
where szFileName is set to NULL?
Thanks,
Austin
Thanks for your reply. Do you mean load in a NULL file? Can I trouble you with an example?
Is it like this?
HRESULT SimConnect_FlightPlanLoadW(
HANDLE hSimConnect,
const wchar_t* szFileName
);
where szFileName is set to NULL?
Thanks,
Austin
Re: Cancel Flight Plan from SimConnect
Hi Fredo,
I guess this is indeed what he meant...easiest way would be to just try it out...pass in a nullptr as szFileName and see what happens :).
Greets,
Benny
I guess this is indeed what he meant...easiest way would be to just try it out...pass in a nullptr as szFileName and see what happens :).
Greets,
Benny
Re: Cancel Flight Plan from SimConnect
Hi,
We just did and I'm happy to report back that it did indeed work.
Thanks everyone!
Austin
We just did and I'm happy to report back that it did indeed work.
Thanks everyone!
Austin