Hello James,
Art pointed me in the right direction.
I am using your tutorial and modifying it to experiment. I was using myUpdate() to refresh the video display. That was perfect until it stopped working a couple of days ago. As it turns out, I accidentally turned off the plugin on the config menu. I never suspected that since I use config to start the dialog box.
> Are you using DbgMsg from my tutorial?
Yes. I am using most of your tutorial as a starting point.
> myHighSpeedUpdate is NEVER called by Mach3 it is a timer, but if you are using it there is a
> watchdog in the code that will disable it if myUpdate stops (meaning your plugin thread has crashed).
Thanx, good to know.
> ANYTHING you do in myUpdate needs to be VERY fast and you must return control to Mach3
> ASAP or you will crash.
Good point. Now that I have it working again I will change to a SetTimer() to avoid trouble.
> Here is a good article on time and timers and why they will never be very precise.
Thanx. Good reading.
This is not for precision. I just need to refresh the video display several times a second. 10Hz worked well enough that I will start with a 100ms timer. No big deal if the timer callback is late.
However, I would still like to know how to include a timer in a modeless dialog box. I see how others have done it but when I try to edit my source code the compiler complains. So I expect there is a resource editor protocol for doing this. Searching codeproject and google and the compiler's help have not shown me the way.
Is there a standard way to do this or should I just edit the source code?
Tom Hubin