"At close"

Windows specific forum
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

"At close"

Post 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...
User avatar
Bisonte
Addict
Addict
Posts: 1320
Joined: Tue Oct 09, 2007 2:15 am

Re: "At close"

Post 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
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
Post Reply