Click here to Skip to main content
15,914,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can repaint a view? Pin
Cedric Moonen6-Sep-08 7:40
Cedric Moonen6-Sep-08 7:40 
QuestionUpdateData giving run time error Pin
Dhiraj kumar Saini6-Sep-08 0:31
Dhiraj kumar Saini6-Sep-08 0:31 
AnswerRe: UpdateData giving run time error Pin
Gary R. Wheeler6-Sep-08 1:24
Gary R. Wheeler6-Sep-08 1:24 
GeneralRe: UpdateData giving run time error Pin
Dhiraj kumar Saini6-Sep-08 1:33
Dhiraj kumar Saini6-Sep-08 1:33 
GeneralRe: UpdateData giving run time error Pin
Gary R. Wheeler6-Sep-08 2:11
Gary R. Wheeler6-Sep-08 2:11 
GeneralRe: UpdateData giving run time error Pin
Dhiraj kumar Saini6-Sep-08 3:00
Dhiraj kumar Saini6-Sep-08 3:00 
GeneralRe: UpdateData giving run time error Pin
David Crow8-Sep-08 4:16
David Crow8-Sep-08 4:16 
AnswerRe: UpdateData giving run time error Pin
Cedric Moonen6-Sep-08 1:27
Cedric Moonen6-Sep-08 1:27 
Dude, when will you learn to use the "code block" tag ? Hmmm | :|

For your question: UpdateData is considered UI stuff, so you can't call it from a thread. The easiest option that you have here is to have a VisitorDetails structure member of your dialog class that you will fill from within your thread. Once this is done, the thread will need to send a user defined message to the main window signaling that this is done. In the function that handle that message, set your class member as you did here and call UpdateData.

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

QuestionFailed to Create Empty Document [modified] Pin
Sachindra Kumar Shukla5-Sep-08 23:24
Sachindra Kumar Shukla5-Sep-08 23:24 
QuestionCopying a file Pin
programming.student5-Sep-08 21:47
programming.student5-Sep-08 21:47 
AnswerRe: Copying a file Pin
Cedric Moonen5-Sep-08 22:12
Cedric Moonen5-Sep-08 22:12 
AnswerRe: Copying a file Pin
Perspx5-Sep-08 22:45
Perspx5-Sep-08 22:45 
QuestionThreads Problem Pin
Dhiraj kumar Saini5-Sep-08 19:23
Dhiraj kumar Saini5-Sep-08 19:23 
AnswerRe: Threads Problem Pin
Cedric Moonen5-Sep-08 22:09
Cedric Moonen5-Sep-08 22:09 
QuestionCPrintDialog::GetPrinterDC question Pin
followait5-Sep-08 17:28
followait5-Sep-08 17:28 
AnswerRe: CPrintDialog::GetPrinterDC question Pin
Rane5-Sep-08 19:01
Rane5-Sep-08 19:01 
QuestionCalling functions in an executable or accessing its global variables from a DLL Pin
Ben Burnett5-Sep-08 12:09
Ben Burnett5-Sep-08 12:09 
AnswerRe: Calling functions in an executable or accessing its global variables from a DLL Pin
Garth J Lancaster5-Sep-08 14:23
professionalGarth J Lancaster5-Sep-08 14:23 
GeneralRe: Calling functions in an executable or accessing its global variables from a DLL Pin
Ben Burnett10-Sep-08 5:49
Ben Burnett10-Sep-08 5:49 
QuestionAfxMessageBox( ) in my DLL Pin
john john mackey5-Sep-08 12:01
john john mackey5-Sep-08 12:01 
AnswerRe: AfxMessageBox( ) in my DLL Pin
Perspx5-Sep-08 12:12
Perspx5-Sep-08 12:12 
GeneralRe: AfxMessageBox( ) in my DLL Pin
john john mackey5-Sep-08 12:25
john john mackey5-Sep-08 12:25 
QuestionShowing powers, cubes and squares in a console window Pin
toprogramminguy5-Sep-08 10:11
toprogramminguy5-Sep-08 10:11 
AnswerRe: Showing powers, cubes and squares in a console window Pin
David Crow5-Sep-08 10:21
David Crow5-Sep-08 10:21 
AnswerRe: Showing powers, cubes and squares in a console window Pin
Sauce!7-Sep-08 1:45
Sauce!7-Sep-08 1:45 

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.