Thread
-
I use a thread like http://www.codeproject.com/useritems/memberthread.asp?target=threadstruct and I want it begins automatically after the display of the dialog Box Where I have to place AfxBeginThread(...) ? Excuse my poor english, I'm antartician My uncle is a swindler and then?
-
I use a thread like http://www.codeproject.com/useritems/memberthread.asp?target=threadstruct and I want it begins automatically after the display of the dialog Box Where I have to place AfxBeginThread(...) ? Excuse my poor english, I'm antartician My uncle is a swindler and then?
-
I use a thread like http://www.codeproject.com/useritems/memberthread.asp?target=threadstruct and I want it begins automatically after the display of the dialog Box Where I have to place AfxBeginThread(...) ? Excuse my poor english, I'm antartician My uncle is a swindler and then?
Set the dwCreateFlags parameter to CREATE_SUSPENDED.
CWinThread* pThread = AfxBeginThread(pfnThreadProc, pParam, THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED);
When you are ready for the thread to start execution call this:pThread->ResumeThread();
:) Jonathan Craig www.mcw-tech.com