• Welcome to Jose's Read Only Forum 2023.
 

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