Program End

Blitz3D Forums/Blitz3D Programming/Program End

Naughty Alien(Posted 2006) [#1]
..okay..I hope someone can help me here..when I create my application like this

graphics3D 1024,768,32,2

I receive windowe mode with minimize and close application button active..now..

within main loop I am checking is it ESC button pressed, if so, application end and before that i can put some other things to do like saving some data or something, whatever..beauty is that I know where my application end..now..when I do same thing BUT clicking on CLOSE button created on my window by graphics3D 1024,768,32,2 command,
additional works I perform before end (like in case with ESC) is not done..so, where my program end then?? I thought its same as one with ESC button checking..so, can anyone help??


John Blackledge(Posted 2006) [#2]
I think you need the BlitzCLose dll in the Toolbox.


Naughty Alien(Posted 2006) [#3]
thanks John..this was really annoying me long time..


Naughty Alien(Posted 2006) [#4]
..hmm..there is no such a DLL in Toolbox...


big10p(Posted 2006) [#5]
I've emailed you a copy, NA.


Naughty Alien(Posted 2006) [#6]
thanks mannn.. :)


kevin8084(Posted 2006) [#7]
You can also use api_peekMessage and if it's the proper message do your cleanup and then exit application.


Naughty Alien(Posted 2006) [#8]
thanks Kevin..this DLL works just great..really nice, smooth and easy ;)