• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

do we still need UnregisterMain ?

Started by Chris Chancellor, January 02, 2019, 11:38:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chris Chancellor

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

Charles Pegge

Hi Chris,

Windows does that automatically as part of its end-of-process cleardown.

Chris Chancellor