|
-
Nov 9th, 2000, 07:46 AM
#1
Thread Starter
New Member
Hi all!
I need a timer for a multimedia application. The VB timer has not the time resolution I need, and it's periods are not very constants if there are user events.
How can I do this? Which kind of ActiveX should I use? Has anybody tried something like this?
Thanks in advanced,
Javier R. Encinas
-
Nov 9th, 2000, 08:11 AM
#2
Hyperactive Member
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
-
Nov 9th, 2000, 08:17 AM
#3
Member
The April 2000 edition of Visual Basic Programmers Journal has an article on how to build high-precision timers in code. I was thinking of building an ActiveX component to do this as well. If you want to research the API calls:
timeGetDevCaps
timeBeginPeriod
timeEndPeriod
timeSetEvent
timeKillEvent
You can build higher precision timers with code.
Let me know if you'd be interested in an ActiveX control that encapsulates this functionality and I'll send it to you when it's done.
Regards,
Dan McLeran
[email protected]
-
Nov 9th, 2000, 08:47 AM
#4
Fanatic Member
Check out the Common Controls Replacement Project http://www.mvps.org/ccrp/ They have precision multimedia timers (I use one for a multi-player game I'm writing).
-
Nov 9th, 2000, 08:54 AM
#5
Fanatic Member
-
Nov 9th, 2000, 12:30 PM
#6
Thread Starter
New Member
Thanks All!
Thank you very much all of you. It will work like a clock!
Javier R Encinas
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|