Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionKeeping a thread idle for a while Pin
sunny_vc23-Aug-09 20:15
sunny_vc23-Aug-09 20:15 
AnswerRe: Keeping a thread idle for a while Pin
Adam Roderick J23-Aug-09 20:22
Adam Roderick J23-Aug-09 20:22 
AnswerRe: Keeping a thread idle for a while Pin
Cedric Moonen23-Aug-09 20:25
Cedric Moonen23-Aug-09 20:25 
AnswerRe: Keeping a thread idle for a while Pin
Rajesh R Subramanian23-Aug-09 20:46
professionalRajesh R Subramanian23-Aug-09 20:46 
QuestionDll Pin
rdop23-Aug-09 20:14
rdop23-Aug-09 20:14 
AnswerRe: Dll Pin
rdop23-Aug-09 20:51
rdop23-Aug-09 20:51 
QuestionGetting process ID Pin
Le@rner23-Aug-09 19:31
Le@rner23-Aug-09 19:31 
AnswerRe: Getting process ID Pin
«_Superman_»23-Aug-09 19:44
professional«_Superman_»23-Aug-09 19:44 
QuestionTree Control without check box in the root Pin
Ranojay23-Aug-09 19:24
Ranojay23-Aug-09 19:24 
AnswerRe: Tree Control without check box in the root Pin
zhu_lin23-Aug-09 20:49
zhu_lin23-Aug-09 20:49 
GeneralRe: Tree Control without check box in the root Pin
Ranojay23-Aug-09 20:54
Ranojay23-Aug-09 20:54 
GeneralRe: Tree Control without check box in the root Pin
zhu_lin23-Aug-09 21:12
zhu_lin23-Aug-09 21:12 
QuestionRe : Displaying the icons only for subitems in the CListCtrl. Pin
Gokul_md23-Aug-09 19:08
Gokul_md23-Aug-09 19:08 
AnswerRe: Re : Displaying the icons only for subitems in the CListCtrl. Pin
«_Superman_»23-Aug-09 19:50
professional«_Superman_»23-Aug-09 19:50 
QuestionPosting messages while using multiple threads Pin
PaulowniaK23-Aug-09 16:10
PaulowniaK23-Aug-09 16:10 
AnswerRe: Posting messages while using multiple threads Pin
«_Superman_»23-Aug-09 18:34
professional«_Superman_»23-Aug-09 18:34 
GeneralRe: Posting messages while using multiple threads Pin
PaulowniaK23-Aug-09 19:38
PaulowniaK23-Aug-09 19:38 
GeneralRe: Posting messages while using multiple threads Pin
«_Superman_»23-Aug-09 19:43
professional«_Superman_»23-Aug-09 19:43 
GeneralRe: Posting messages while using multiple threads Pin
PaulowniaK24-Aug-09 18:54
PaulowniaK24-Aug-09 18:54 
Thanks for the advice. I needed to loop using PeekMessage so that messages were received at any time for the duration of the thread (entire lifetime of the application).

I've had to add additional functionalities which meant I really had to think seriously about using events instead. I want to use CEvent but to do that I need afxmt.h.

If I include afxmt.h in my stdafx.h after atlbase.h I get an error about MFC applications not being allowed to have windows.h.

If I put the afxmt.h before atlbase.h I get a linker error about _DLLMain@12 already being defined. It looks like the problem is in atlbase.h so I have a chicken and egg situation.

I've looked at changing the order of linking libraries, but with not much success as the error says _DLLMain is defined already in MyObject.obj (i.e. obj file created from my application I am writing at the moment).

Please help!
QuestionConnecting (DirectShow) filter pins causes application to quit. Pin
Code-o-mat23-Aug-09 8:03
Code-o-mat23-Aug-09 8:03 
AnswerRe: Connecting (DirectShow) filter pins causes application to quit. Pin
zhu_lin23-Aug-09 20:59
zhu_lin23-Aug-09 20:59 
GeneralRe: Connecting (DirectShow) filter pins causes application to quit. Pin
Code-o-mat24-Aug-09 9:42
Code-o-mat24-Aug-09 9:42 
GeneralRe: Connecting (DirectShow) filter pins causes application to quit. Pin
zhu_lin24-Aug-09 15:14
zhu_lin24-Aug-09 15:14 
QuestionHWND of a control. [modified] Pin
FISH78623-Aug-09 3:30
FISH78623-Aug-09 3:30 
AnswerRe: HWND of a control. Pin
PJ Arends23-Aug-09 6:01
professionalPJ Arends23-Aug-09 6:01 

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.