Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can someone help? Pin
PJ Arends25-Dec-05 14:47
professionalPJ Arends25-Dec-05 14:47 
GeneralRe: Can someone help? Pin
xyhan25-Dec-05 16:09
xyhan25-Dec-05 16:09 
GeneralRe: Can someone help? Pin
big_denny_20025-Dec-05 22:56
big_denny_20025-Dec-05 22:56 
GeneralRe: Can someone help? Pin
PJ Arends26-Dec-05 6:20
professionalPJ Arends26-Dec-05 6:20 
QuestionExpanding bomb explosion? Pin
Lord Kixdemp24-Dec-05 14:43
Lord Kixdemp24-Dec-05 14:43 
AnswerRe: Expanding bomb explosion? Pin
vikas amin26-Dec-05 2:03
vikas amin26-Dec-05 2:03 
GeneralRe: Expanding bomb explosion? Pin
Lord Kixdemp26-Dec-05 6:51
Lord Kixdemp26-Dec-05 6:51 
QuestionHas MFC dialog boxes gone multi threaded?? Pin
Robert Buldoc24-Dec-05 11:23
Robert Buldoc24-Dec-05 11:23 
First of all Merry Christmas!

I noticed something weird in Visual Studio 2005. I haven't test my code in previous versions so I cannot confirm whether its merrit of VS2005 or else.

Ok, I have a dialog box application with 2 modeless dialog boxes which are created before the main dialog box in the application. I noticed there are 2 extra threads in the application with names "ThreadStartRoutine" and CRpcThreadCache::RpcWorkerThreadEntry" both at location _KiFastSystemCallRet@0 as shown in debug mode.

These 2 threads are created during the creation of the main dialog box in DoModal() function. I traced the exact creation point to Line 306 at dlgcore.cpp:
hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
pParentWnd->GetSafeHwnd(), AfxDlgProc);

Which is inside this function:
BOOL CWnd::CreateDlgIndirect(LPCDLGTEMPLATE lpDialogTemplate,
CWnd* pParentWnd, HINSTANCE hInst)



My question is what are these 2 threads for? and why are they created?

Any insight appreciated!!
Rob

AnswerRe: Has MFC dialog boxes gone multi threaded?? Pin
Gary R. Wheeler25-Dec-05 2:02
Gary R. Wheeler25-Dec-05 2:02 
AnswerRe: Has MFC dialog boxes gone multi threaded?? Pin
vipinasda26-Dec-05 5:44
vipinasda26-Dec-05 5:44 
QuestionHow to save CBitmap to file Pin
caykahve24-Dec-05 9:43
caykahve24-Dec-05 9:43 
AnswerRe: How to save CBitmap to file Pin
vipinasda24-Dec-05 18:54
vipinasda24-Dec-05 18:54 
AnswerRe: How to save CBitmap to file Pin
John R. Shaw26-Dec-05 13:01
John R. Shaw26-Dec-05 13:01 
QuestionIConnectionPointContainer Pin
neliocc23-Dec-05 20:39
neliocc23-Dec-05 20:39 
AnswerRe: IConnectionPointContainer Pin
Sheng Jiang 蒋晟24-Dec-05 9:21
Sheng Jiang 蒋晟24-Dec-05 9:21 
QuestionCArray<double,double*> pointer ?? Pin
Vaclav23-Dec-05 19:24
Vaclav23-Dec-05 19:24 
AnswerRe: CArray<double,double*> pointer ?? Pin
Michael Dunn23-Dec-05 20:22
sitebuilderMichael Dunn23-Dec-05 20:22 
GeneralRe: CArray<double,double*> pointer ?? Pin
Vaclav24-Dec-05 5:51
Vaclav24-Dec-05 5:51 
AnswerRe: CArray<double,double*> pointer ?? Pin
Bob Stanneveld23-Dec-05 22:22
Bob Stanneveld23-Dec-05 22:22 
QuestionHow to add Color's to CEdit box text contents Pin
dipuks23-Dec-05 13:41
dipuks23-Dec-05 13:41 
AnswerRe: How to add Color's to CEdit box text contents Pin
PJ Arends23-Dec-05 15:39
professionalPJ Arends23-Dec-05 15:39 
GeneralRe: How to add Color's to CEdit box text contents Pin
dipuks23-Dec-05 15:52
dipuks23-Dec-05 15:52 
GeneralRe: How to add Color's to CEdit box text contents Pin
PJ Arends24-Dec-05 8:11
professionalPJ Arends24-Dec-05 8:11 
AnswerRe: How to add Color's to CEdit box text contents Pin
ddmcr23-Dec-05 19:27
ddmcr23-Dec-05 19:27 
GeneralRe: How to add Color's to CEdit box text contents Pin
dipuks24-Dec-05 10:13
dipuks24-Dec-05 10:13 

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.