Re: win32lib: manipulating vWinMainState
- Posted by Alexander Toresson <toressonodakra at swipnet.se> Aug 01, 2004
- 495 views
Pete Lomax wrote: > In asmdebugwin.ew I made main global, and commented out the two lines > openWindow(main, Normal) > vWinMainState = kStarted > (at the time I didn't notice the second use within CallBack()) > In demo.exw I added WinMain(main, Normal) before the asm_cleanup() > call. It wasn't quite right, but fairly close (displays from line 3). > > BTW, what is the sequence states for? The sequence states stores the on/off states for tracing an asm routine. If the corresponding state of a routine is 0, it won't be traced. If the window is closed, the state of the current routine will be set to 0. The problem is that, if there are more than one asm routine, the program will continue on the next, and the window will have to be opened one more time. I do not actually know why your hack worked. The asm routine is already called when you call WinMain(). Regards, Alexander Toresson Shhh! Be vewy quiet! I'm hunting wuntime ewwows! PS. Delay caused by holiday. DS