Cancel Flight Plan from SimConnect

Fredo0709
Posts: 3
Joined: Tue Apr 28, 2015 4:11 pm

Cancel Flight Plan from SimConnect

Postby Fredo0709 » Fri Jul 05, 2019 7:22 am

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

FSTramp
Posts: 66
Joined: Tue Oct 06, 2015 12:12 pm

Re: Cancel Flight Plan from SimConnect

Postby FSTramp » Fri Jul 05, 2019 7:45 am

NULL

Fredo0709
Posts: 3
Joined: Tue Apr 28, 2015 4:11 pm

Re: Cancel Flight Plan from SimConnect

Postby Fredo0709 » Sat Jul 06, 2019 8:27 am

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

BenBaron
Posts: 63
Joined: Fri Jan 16, 2015 7:51 am

Re: Cancel Flight Plan from SimConnect

Postby BenBaron » Sat Jul 06, 2019 12:26 pm

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

Fredo0709
Posts: 3
Joined: Tue Apr 28, 2015 4:11 pm

Re: Cancel Flight Plan from SimConnect

Postby Fredo0709 » Mon Jul 08, 2019 1:03 am

Hi,

We just did and I'm happy to report back that it did indeed work.

Thanks everyone!
Austin


Return to “SimConnect Interface Questions”

Who is online

Users browsing this forum: No registered users and 2 guests