Re: Thread and Timer
- From: Stefano <posting@xxxxxxxxxx>
- Date: Fri, 14 Mar 2008 08:13:46 -0700 (PDT)
BOOL CMyThread::InitInstance()
{
m_TimerID = SetTimer(NULL,0,5000,NULL);
return TRUE;
In this way works. But If I add a method
void CMyThread::Monitor(...)
{
m_TimerID = SetTimer(NULL,0,5000,NULL);
}
and I call from my dialog, the timer was set but OnTimer was never
called.
(Sorry I'm new to thread maybe Im doing something wrong)
.
- Follow-Ups:
- Re: Thread and Timer
- From: AliR \(VC++ MVP\)
- Re: Thread and Timer
- From: Scott McPhillips [MVP]
- Re: Thread and Timer
- References:
- Thread and Timer
- From: Stefano
- Re: Thread and Timer
- From: Joseph M . Newcomer
- Re: Thread and Timer
- From: Stefano
- Re: Thread and Timer
- From: Joseph M . Newcomer
- Re: Thread and Timer
- From: AliR \(VC++ MVP\)
- Re: Thread and Timer
- From: Joseph M . Newcomer
- Re: Thread and Timer
- From: AliR \(VC++ MVP\)
- Thread and Timer
- Prev by Date: Re: Using CString object in non MFC programs
- Next by Date: 3D Graphics in MFC
- Previous by thread: Re: Thread and Timer
- Next by thread: Re: Thread and Timer
- Index(es):
Relevant Pages
|
Loading