Click here to Skip to main content
15,885,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Precompiled Headers Pin
Chris Losinger24-Jun-12 12:35
professionalChris Losinger24-Jun-12 12:35 
AnswerRe: Precompiled Headers Pin
jschell25-Jun-12 9:45
jschell25-Jun-12 9:45 
QuestionPut text data to position where cursor is blinking Pin
khanhnd14058224-Jun-12 4:34
khanhnd14058224-Jun-12 4:34 
QuestionWin32 local aplication using accessing mysql instaled in a site with easyphp ... Pin
SNArruda23-Jun-12 13:02
SNArruda23-Jun-12 13:02 
AnswerRe: Win32 local aplication using accessing mysql instaled in a site with easyphp ... Pin
markkuk23-Jun-12 23:43
markkuk23-Jun-12 23:43 
QuestionBinary value Division Pin
Syed umair shah23-Jun-12 0:48
Syed umair shah23-Jun-12 0:48 
AnswerRe: Binary value Division Pin
Richard MacCutchan23-Jun-12 2:14
mveRichard MacCutchan23-Jun-12 2:14 

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.