Basicfarmer
asked on
Using Implements for a non blocking CCRP Timer
Experts, I am using Implements to use a non blocking ccrp timer. I need to declare the implements twice because i want to use two timers. Below is the code for one timer. But i do not know how to use implements to get two timer events.
Please let me know what i can do to get two timers running.
Please let me know what i can do to get two timers running.
Implements ICcrpTimerNotify
Private receiveTimer As ccrpTimer
Private Sub Form_Load()
Set receiveTimer = New ccrpTimer
Set receiveTimer.Notify = Me
receiveTimer.EventType = TimerPeriodic
receiveTimer.Interval = 20
receiveTimer.Stats.Frequency = 10
End Sub
Private sub ICcrpTimerNotify_Timer(Milliseconds as Long)
'Do Timer stuff
End Sub
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys, even though i had seen those examples before i didnt really understand them. The suggestion to create another class got me pointed in the right direction.
ASKER
I tried to put this in a class and then raise an event thinking that way i could have two independent non blocking timers. But i cannot get it to work. I think it has something to do with Set receiveTmr.Notify = Me because it is in a class. Any ideas?
Open in new window