call a b3d routine before user close the window

Blitz3D Forums/Blitz3D Programming/call a b3d routine before user close the window

how to call a blitzroutine before the windows close from hitting the blue x in the right corner ??

http://www.melog.ch/dl/blitzclose.zip
Didn't you ask the same thing 4 months ago? :
http://www.blitzbasic.com/Community/posts.php?topic=54396

sorry i dont remember what .