Re: To get the SetTimer identity
jmarc wrote:
This is not a real code. Of course,
It will not compile. I wrote it on
the fly. You're right, replacing :: by ->
and adding brackets to reach objets
instances... might be better, and
more understandable..
I assure you, I am well aware of
classes and objects, and static method
as well..
Now, the whole example again...
________________________________________________
void CMyWnd::OnTimer(UINT_PTR IDEvent)
{
if( MyBussinessObject::ATimerHasElapse(IDEvent) )
return;
else
CWnd::OnTimer(nIDEvent);
}
jmarc:
I can assure you that posting code that clearly will not compile is
extremely distracting to anybody who might try to help you. Why not post
the actual code?
So CMyWnd::OnTimer() and MyBussinessObject::ATimerHasElapse() are static
methods?
I am still not clear how your classes are related to each other, or how
the timers are launched.
But I have to say that I have lost track of the actual question here.
--
David Wilkinson
Visual C++ MVP