Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Focus problem Pin
Chris Richardson21-Feb-04 13:13
Chris Richardson21-Feb-04 13:13 
GeneralProblem using Crystal Report 6 Pin
DjChris1420-Feb-04 19:24
DjChris1420-Feb-04 19:24 
GeneralRe: Problem using Crystal Report 6 Pin
Steve S22-Feb-04 22:32
Steve S22-Feb-04 22:32 
GeneralClass Design Question Pin
Nick Parker20-Feb-04 16:33
protectorNick Parker20-Feb-04 16:33 
GeneralRe: Class Design Question Pin
Michael Dunn20-Feb-04 17:04
sitebuilderMichael Dunn20-Feb-04 17:04 
GeneralRe: Class Design Question Pin
Prakash Nadar20-Feb-04 17:13
Prakash Nadar20-Feb-04 17:13 
GeneralRegex Parser Pin
monrobot1320-Feb-04 14:33
monrobot1320-Feb-04 14:33 
GeneralMFC Worker Thread Question Pin
Dev57820-Feb-04 14:07
Dev57820-Feb-04 14:07 
Here is the problem I am having:

UINT WorkerThread(LPVOID pParam)
{
while (1==1)
{
UpdateData();
//do something
UpdateData(false);
}
return 0;
}

void main()
{
AfxBeginThread(WorkerThread, (LPVOID)this, THREAD_PRIORITY_NORMAL);
}


The UpdateData() function does not work in the Worker Thread. I have researched this quite a bit, and apparantly others were having the same problem. However, no one was able to come up with a straight answer. Anyone know how to use UpdateData() in a worker thread? Any help is appreciated.

-Dev578
GeneralRe: MFC Worker Thread Question Pin
Prakash Nadar20-Feb-04 14:30
Prakash Nadar20-Feb-04 14:30 
GeneralRe: MFC Worker Thread Question Pin
Dev57820-Feb-04 14:47
Dev57820-Feb-04 14:47 
GeneralRe: MFC Worker Thread Question Pin
J.B.20-Feb-04 15:05
J.B.20-Feb-04 15:05 
GeneralRe: MFC Worker Thread Question Pin
Dev57820-Feb-04 16:09
Dev57820-Feb-04 16:09 
GeneralRe: MFC Worker Thread Question Pin
J.B.20-Feb-04 16:39
J.B.20-Feb-04 16:39 
GeneralRe: MFC Worker Thread Question Pin
Balkrishna Talele20-Feb-04 21:47
Balkrishna Talele20-Feb-04 21:47 
GeneralRe: MFC Worker Thread Question Pin
Neville Franks20-Feb-04 22:09
Neville Franks20-Feb-04 22:09 
GeneralRe: MFC Worker Thread Question Pin
Prakash Nadar20-Feb-04 15:32
Prakash Nadar20-Feb-04 15:32 
GeneralRe: MFC Worker Thread Question Pin
Dev57820-Feb-04 16:25
Dev57820-Feb-04 16:25 
GeneralRe: MFC Worker Thread Question Pin
Prakash Nadar20-Feb-04 17:01
Prakash Nadar20-Feb-04 17:01 
GeneralRe: MFC Worker Thread Question Pin
Michael Dunn20-Feb-04 17:01
sitebuilderMichael Dunn20-Feb-04 17:01 
GeneralRe: MFC Worker Thread Question Pin
Balkrishna Talele20-Feb-04 21:53
Balkrishna Talele20-Feb-04 21:53 
GeneralRe: MFC Worker Thread Question Pin
Neville Franks20-Feb-04 22:06
Neville Franks20-Feb-04 22:06 
GeneralRe: MFC Worker Thread Question Pin
Dev57821-Feb-04 2:24
Dev57821-Feb-04 2:24 
GeneralRe: MFC Worker Thread Question Pin
David Crow23-Feb-04 3:39
David Crow23-Feb-04 3:39 
GeneralNo Subject Pin
achimera20-Feb-04 12:16
achimera20-Feb-04 12:16 
GeneralRe: file types Pin
mohdshiraz20-Feb-04 21:24
mohdshiraz20-Feb-04 21:24 

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.