PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Shawn Anderson on October 11, 2019, 04:31:47 PM

Title: force quit firefly program
Post by: Shawn Anderson on October 11, 2019, 04:31:47 PM
How can I programmatically quit a FF program?
Title: Re: force quit firefly program
Post by: SeaVipe on October 11, 2019, 06:42:59 PM
Hi Shawn,
FF_CloseForm( HWND_MyForm, 0 ) is the built-in FF routine that when called with the projects startup form as its first parameter will shut down the app. I use MyForm_WM_DESTROY function to do some tidying up before the app is shut down. The second parameter is the FF_CloseForm return value.
A less elegant way is to call END which doesn't leave you much except END's return value after the app immediately shuts down.
DestroyWindow HWND_MyForm is not recommended.
I hope this helps.
Title: Re: force quit firefly program
Post by: Shawn Anderson on October 14, 2019, 12:51:49 PM
perfect, thanks