Powerbasic Museum 2020-B

IT-Consultant: Charles Pegge => OxygenBasic => Topic started by: Chris Chancellor on January 02, 2019, 11:38:00 PM

Title: do we still need UnregisterMain ?
Post by: Chris Chancellor on January 02, 2019, 11:38:00 PM
Hello Charles

i saw some of the older programs that they have the below lines


MainWindow     width,height,%WS_POPUP ,2
UnregisterMain


but the newer ones do not have that statement  UnregisterMain

so do we still  need this statement    UnregisterMain ?
before we end the program
Title: Re: do we still need UnregisterMain ?
Post by: Charles Pegge on January 03, 2019, 02:07:21 AM
Hi Chris,

Windows does that automatically as part of its end-of-process cleardown.
Title: Re: do we still need UnregisterMain ?
Post by: Chris Chancellor on January 04, 2019, 04:43:05 PM
Thanxx a lot Charles