Click here to Skip to main content
15,891,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: Error CXX0052: Member function not found Pin
Binu MD25-Jun-12 20:24
Binu MD25-Jun-12 20:24 
AnswerRe: Error CXX0052: Member function not found Pin
Richard MacCutchan25-Jun-12 22:06
mveRichard MacCutchan25-Jun-12 22:06 
AnswerRe: Error CXX0052: Member function not found Pin
fat_boy26-Jun-12 3:10
fat_boy26-Jun-12 3:10 
QuestionFastest form of Interprocess communication Pin
ForNow25-Jun-12 6:44
ForNow25-Jun-12 6:44 
AnswerRe: Fastest form of Interprocess communication Pin
Albert Holguin25-Jun-12 7:24
professionalAlbert Holguin25-Jun-12 7:24 
QuestionHow to get the temperature from my aplication? Pin
MroMarcosKim25-Jun-12 6:01
MroMarcosKim25-Jun-12 6:01 
AnswerRe: How to get the temperature from my aplication? Pin
Software_Developer25-Jun-12 6:24
Software_Developer25-Jun-12 6:24 
QuestionThis class and its members cannot be used in applications that execute in the Windows Runtime. Pin
bob1697225-Jun-12 5:10
bob1697225-Jun-12 5:10 
AnswerRe: This class and its members cannot be used in applications that execute in the Windows Runtime. Pin
Albert Holguin25-Jun-12 7:36
professionalAlbert Holguin25-Jun-12 7:36 
GeneralRe: This class and its members cannot be used in applications that execute in the Windows Runtime. Pin
bob1697225-Jun-12 9:02
bob1697225-Jun-12 9:02 
GeneralRe: This class and its members cannot be used in applications that execute in the Windows Runtime. Pin
Albert Holguin25-Jun-12 12:38
professionalAlbert Holguin25-Jun-12 12:38 
Questionerror C2660 :,, opencv with mfc (Solved) Pin
jawadali47724-Jun-12 19:34
jawadali47724-Jun-12 19:34 
AnswerRe: error C2660 :,, opencv with mfc Pin
«_Superman_»24-Jun-12 19:47
professional«_Superman_»24-Jun-12 19:47 
AnswerRe: error C2660 :,, opencv with mfc Pin
SoMad24-Jun-12 19:53
professionalSoMad24-Jun-12 19:53 
AnswerRe: error C2660 :,, opencv with mfc Pin
fat_boy24-Jun-12 21:54
fat_boy24-Jun-12 21:54 
You need to send the handle of the dialog to the thread because all thes window funcs come in two forms:

The global:

::SetDlgItemText(HWND, IDC_Blue, Blue);

And the Class Specific:

myDlgItem->SetDlgItemText(IDC_Blue, Blue); or
this->SetDlgItemText(IDC_Blue, Blue);

'this' is of course given for free if you are inside the actually controls class so you can write:

SetDlgItemText(IDC_Blue, Blue);

So, you are in a thread, NOT in the MFC class instance, so you need to pass the window handle to the thread in order to manipulate it there.

Or even better create your own messaging system so you can send a message to the main window thread from your thread so the main window thread can do all the detailed work rathert than having to code it in your worker thread.
AnswerRe: error C2660 :,, opencv with mfc Pin
jawadali47725-Jun-12 0:40
jawadali47725-Jun-12 0:40 
QuestionDynamic cast question Pin
ForNow24-Jun-12 18:45
ForNow24-Jun-12 18:45 
AnswerRe: Dynamic cast question Pin
«_Superman_»24-Jun-12 19:51
professional«_Superman_»24-Jun-12 19:51 
AnswerRe: Dynamic cast question Pin
Richard MacCutchan24-Jun-12 22:29
mveRichard MacCutchan24-Jun-12 22:29 
AnswerRe: Dynamic cast question Pin
fat_boy25-Jun-12 0:45
fat_boy25-Jun-12 0:45 
QuestionSetDIBits and GetDIBits (Aarot.zip) Pin
Rabindra Laheri24-Jun-12 18:33
Rabindra Laheri24-Jun-12 18:33 
AnswerRe: SetDIBits and GetDIBits (Aarot.zip) Pin
Richard Andrew x6424-Jun-12 18:49
professionalRichard Andrew x6424-Jun-12 18:49 
GeneralRe: SetDIBits and GetDIBits (Aarot.zip) Pin
Rabindra Laheri24-Jun-12 19:39
Rabindra Laheri24-Jun-12 19:39 
AnswerRe: SetDIBits and GetDIBits (Aarot.zip) Pin
Richard MacCutchan24-Jun-12 22:22
mveRichard MacCutchan24-Jun-12 22:22 
QuestionPrecompiled Headers Pin
ForNow24-Jun-12 11:36
ForNow24-Jun-12 11:36 

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.