Page 1 of 1

"At close"

Posted: Mon Nov 21, 2011 9:12 am
by jassing
I recall from days past there was a function that could be called whenever (and however) the application exited.. now I'm trying to find it out if I remember correctly, and if it was a windows-thing or just the compiler of the time... I sort of recall it being a trick, like registering the function, but it was actually called when the dll was unloaded...

Re: "At close"

Posted: Mon Nov 21, 2011 2:37 pm
by Bisonte
jassing wrote:I recall from days past there was a function that could be called whenever (and however) the application exited.. now I'm trying to find it out if I remember correctly, and if it was a windows-thing or just the compiler of the time... I sort of recall it being a trick, like registering the function, but it was actually called when the dll was unloaded...
Maybe you mean the Purebasic Example to create DLL's ?

(PB-Help)

Code: Select all

; Called when the program release (free) the DLL
;
ProcedureDLL DetachProcess(Instance)
EndProcedure