Posted by Brian Levantine on May 01, 2007 at 11:43:25:
In Reply to: Re: Progress Bar dialog posted by Grant Foraker on April 30, 2007 at 06:59:48:
You should implement an event handler at least to get initialization completed. You can always execute a NULL EventSub (no args) to turn off the feature and return to continue your program. Take a look at the EventHandler for a CometWin dialog like Dlg5A. You'll see code that call CW.IsWindowInitializing which if it returns cosState=TRUE will call an InitDialog routine. This happens after the dialog is loaded but no displayed. If you add this routine along with a call to CloseDLL, it should fix this problem.
Gosub COS.CloseDll ! Unload DLL