Click here to Skip to main content
15,908,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Array of Structures Pin
Jagadeesh VN16-Sep-03 2:47
Jagadeesh VN16-Sep-03 2:47 
GeneralTLB Error - Pin
fadee16-Sep-03 2:30
fadee16-Sep-03 2:30 
GeneralRe: TLB Error - Pin
Jagadeesh VN16-Sep-03 2:52
Jagadeesh VN16-Sep-03 2:52 
GeneralTermiating an MFC app from a separate thread Pin
BigBen00716-Sep-03 2:24
BigBen00716-Sep-03 2:24 
GeneralRe: Termiating an MFC app from a separate thread Pin
Jagadeesh VN16-Sep-03 2:39
Jagadeesh VN16-Sep-03 2:39 
GeneralRe: Termiating an MFC app from a separate thread Pin
Jagadeesh VN16-Sep-03 2:43
Jagadeesh VN16-Sep-03 2:43 
GeneralRe: Termiating an MFC app from a separate thread Pin
BigBen00716-Sep-03 4:04
BigBen00716-Sep-03 4:04 
GeneralRe: Termiating an MFC app from a separate thread Pin
Jagadeesh VN16-Sep-03 7:15
Jagadeesh VN16-Sep-03 7:15 
AfxGetApp()->GetMainWnd()->m_hWnd

'AfxGetApp()->GetMainWnd()' this is where the bug resides. You are not supposed to access the Main window from your thread. You have to some how pass the HWND of the main window to the thread fn. Then you can use this HWND to send the ::PostMessage( HWND, WM_QUIT,..)

If you are using the AfxBeginThread fn, you can pass this parameter as LPVOID. Since you are using timeSetEvent, you can pass the HWND on DWORD_PTR parameter.

"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
GeneralScreensaver with Mpeg problem Pin
Mortis16-Sep-03 2:08
Mortis16-Sep-03 2:08 
GeneralCMemDC help Pin
Zizilamoroso16-Sep-03 1:28
Zizilamoroso16-Sep-03 1:28 
GeneralRe: CMemDC help Pin
dan o16-Sep-03 3:38
dan o16-Sep-03 3:38 
GeneralRe: CMemDC help Pin
Zizilamoroso16-Sep-03 6:55
Zizilamoroso16-Sep-03 6:55 
GeneralRe: CMemDC help Pin
Jagadeesh VN16-Sep-03 7:29
Jagadeesh VN16-Sep-03 7:29 
GeneralRe: CMemDC help Pin
Zizilamoroso16-Sep-03 11:18
Zizilamoroso16-Sep-03 11:18 
GeneralRe: CMemDC help Pin
KaЯl17-Sep-03 0:15
KaЯl17-Sep-03 0:15 
GeneralCRichEditCtrl - Text Align Pin
Ph@ntom16-Sep-03 1:14
Ph@ntom16-Sep-03 1:14 
GeneralRe: CRichEditCtrl - Text Align Pin
David Crow16-Sep-03 4:27
David Crow16-Sep-03 4:27 
QuestionHow can we spy[hook] Registry Actions? Pin
Behzad Ebrahimi16-Sep-03 1:12
Behzad Ebrahimi16-Sep-03 1:12 
AnswerRe: How can we spy[hook] Registry Actions? Pin
Roger Allen16-Sep-03 1:41
Roger Allen16-Sep-03 1:41 
GeneralTerminate MFC App in CView::OnInitialUpdate() Pin
CodeBrain16-Sep-03 1:03
CodeBrain16-Sep-03 1:03 
GeneralRe: Terminate MFC App in CView::OnInitialUpdate() Pin
Steve S16-Sep-03 1:26
Steve S16-Sep-03 1:26 
GeneralRe: Terminate MFC App in CView::OnInitialUpdate() Pin
Jagadeesh VN16-Sep-03 1:26
Jagadeesh VN16-Sep-03 1:26 
GeneralRe: Terminate MFC App in CView::OnInitialUpdate() Pin
Roger Allen16-Sep-03 1:42
Roger Allen16-Sep-03 1:42 
GeneralRe: Terminate MFC App in CView::OnInitialUpdate() Pin
Jagadeesh VN16-Sep-03 1:56
Jagadeesh VN16-Sep-03 1:56 
QuestionWhat MFC is capable of? Can it create full-screen 3D games? Pin
Link260016-Sep-03 0:13
Link260016-Sep-03 0: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.