PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: force quit firefly program  (Read 1714 times)

Shawn Anderson

  • Junior Member
  • **
  • Posts: 67
force quit firefly program
« on: October 11, 2019, 04:31:47 PM »

How can I programmatically quit a FF program?
« Last Edit: October 11, 2019, 04:41:53 PM by Shawn Anderson »
Logged

SeaVipe

  • Senior Member
  • ***
  • Posts: 369
  • Windows 10
Re: force quit firefly program
« Reply #1 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.
Logged
Clive Richey
*“You Either Have To Be Part Of The Solution, Or You’re Going To Be Part The Problem.” Eldridge Cleaver.
#StaySafe, Always  Keep A Safe #SocialDistance, #WashYourHands Often and please, #StayHome!

Shawn Anderson

  • Junior Member
  • **
  • Posts: 67
Re: force quit firefly program
« Reply #2 on: October 14, 2019, 12:51:49 PM »

perfect, thanks
Logged