I couldn't download your example code from the link provided on the page above. So I wrote this letter to inquire if I can get a copy of your sample code from the email. Your early and kind reply will be appreciated greatly! Looking forward to your honored sample program for mmTimers! My email : firstname.lastname@example.org
Need your sample program for mmTimers! from a c++ beginner
Posted by s-gm
on 06/03/2004 09:55am
I came to know you when I serached sample program for multimedia timers on the web page
http://www.codeguru.com/Cpp/G-M/multimedia/timers/comments.php/c1581/?thread=19992. but i couldn't download your honored code from the link provided on the page above. So I wrote this letter to inquire if I can get a copy of your sample code from the email.
Your early and kind reply will be appreciated greatly! Looking forward to your honored samplr program for mmtimers!
a c++ beginner email@example.com
I am a student (trying to graduate this year!). I have a read and write function to/from the parallel port registers that I need to happen every 20 ms. I am trying to use the Multimedia timer with your code. I just can't figure out how to call my function for the callback function. Could you show me how?
Thanks (I hope!)
I just uncovered an interesting limitation of multimedia timers (timeSetEvent). I have an application that has multiple threads. Each thread makes use of a timer. The timer is used to sleep for a period of time. When the thread count is 17, timeSetEvent begins returning NULL (failure). So, if you have an inkling to use more than 16 multimedia timers, you better figure out another way to do this. I am running Windows 2000.
I try to use mmtimer in my system .The problem is that the value returned by the timeGetTime function is a DWORD value. The return value wraps around to 0 every 2^32 milliseconds, which is about 49.71 days. This can cause problems in code that directly uses the timeGetTime return value in computations, particularly where the value is used to control code execution.
How can I run my system longer than 50 days if I use timeGetTime???