Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: reg interview.... Pin
Richard MacCutchan6-Oct-09 22:13
mveRichard MacCutchan6-Oct-09 22:13 
AnswerRe: reg interview.... Pin
Rajesh R Subramanian6-Oct-09 22:17
professionalRajesh R Subramanian6-Oct-09 22:17 
AnswerRe: reg interview.... Pin
santhosh-padamatinti7-Oct-09 0:20
santhosh-padamatinti7-Oct-09 0:20 
QuestionMaking a Thread wait and not exit after the controlling function exits Pin
Hari_166-Oct-09 21:29
Hari_166-Oct-09 21:29 
AnswerRe: Making a Thread wait and not exit after the controlling function exits Pin
Code-o-mat6-Oct-09 21:46
Code-o-mat6-Oct-09 21:46 
AnswerRe: Making a Thread wait and not exit after the controlling function exits Pin
CPallini6-Oct-09 21:54
mveCPallini6-Oct-09 21:54 
AnswerRe: Making a Thread wait and not exit after the controlling function exits Pin
Rajesh R Subramanian6-Oct-09 22:05
professionalRajesh R Subramanian6-Oct-09 22:05 
GeneralRe: Making a Thread wait and not exit after the controlling function exits Pin
Hari_166-Oct-09 23:31
Hari_166-Oct-09 23:31 
Sorry Let me rephrase it better ...

My'n is a DialogBased Application .... in dialog class i create a thread..

m_pThread = AfxBeginThread(RUNTIME_CLASS(CMyUIThread),THREAD_PRIORITY_NORMAL,0,CREATE_SUSPENDED);
m_pThread->ResumeThread();
m_pThread->PostThreadMessage(WM_MYTHREADMESSAGE,NULL,NULL);


Thread Class:

void MyConsumerThread::MyConsumerThreadHandler(WPARAM,LPARAM)
{
..................
......................

}


My question is once the control reaches the end of this function.. i want the control to saty in the function and not exit it..

Please help me out with this and sorry for bad phrasing of the previous message.

Thanks
AnswerRe: Making a Thread wait and not exit after the controlling function exits Pin
Rajesh R Subramanian6-Oct-09 23:39
professionalRajesh R Subramanian6-Oct-09 23:39 
QuestionRe: Making a Thread wait and not exit after the controlling function exits Pin
David Crow7-Oct-09 3:21
David Crow7-Oct-09 3:21 
AnswerRe: Making a Thread wait and not exit after the controlling function exits Pin
Rajesh R Subramanian7-Oct-09 3:24
professionalRajesh R Subramanian7-Oct-09 3:24 
GeneralRe: Making a Thread wait and not exit after the controlling function exits Pin
Hari_168-Oct-09 18:28
Hari_168-Oct-09 18:28 
AnswerRe: Making a Thread wait and not exit after the controlling function exits Pin
Rajesh R Subramanian8-Oct-09 19:44
professionalRajesh R Subramanian8-Oct-09 19:44 
QuestionReg Database Pin
thangvel6-Oct-09 21:26
thangvel6-Oct-09 21:26 
QuestionCString + OPENFILENAME Pin
raviteja20206-Oct-09 21:18
raviteja20206-Oct-09 21:18 
AnswerRe: CString + OPENFILENAME Pin
CPallini6-Oct-09 21:25
mveCPallini6-Oct-09 21:25 
GeneralRe: CString + OPENFILENAME Pin
raviteja20206-Oct-09 22:46
raviteja20206-Oct-09 22:46 
QuestionRe: CString + OPENFILENAME Pin
CPallini6-Oct-09 22:51
mveCPallini6-Oct-09 22:51 
AnswerRe: CString + OPENFILENAME Pin
raviteja20206-Oct-09 23:03
raviteja20206-Oct-09 23:03 
GeneralRe: CString + OPENFILENAME Pin
Richard MacCutchan6-Oct-09 23:19
mveRichard MacCutchan6-Oct-09 23:19 
GeneralRe: CString + OPENFILENAME Pin
CPallini6-Oct-09 23:29
mveCPallini6-Oct-09 23:29 
AnswerRe: CString + OPENFILENAME Pin
Stuart Dootson6-Oct-09 21:28
professionalStuart Dootson6-Oct-09 21:28 
AnswerRe: CString + OPENFILENAME Pin
KarstenK6-Oct-09 21:52
mveKarstenK6-Oct-09 21:52 
AnswerRe: CString + OPENFILENAME Pin
David Crow7-Oct-09 3:33
David Crow7-Oct-09 3:33 
QuestionUsage of Win32APIs CreateFile(),WriteFile() and ReadFile() Pin
ratprita6-Oct-09 20:33
ratprita6-Oct-09 20:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.