Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
What I am doing is writing my own scripting language in MFC. It is done in a text box, the program recognizes functions that the user types in the text box, and executes them accordingly. The user might type something that loops repeadedly, in which case it would have to be done in another thread, as to not interfear with the main dialog. I have a value variable on the text box that I am using for functions like find(), mid(), etc... It only works if it has UpdateData() before it and UpdateData(false) after it. This works completely fine when done in the main thread, but I am having problems doing it in a worker thread. I have tried doing what J.B. suggested, but it caused an assertion failure. Any way to do this?

-Dev578
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 
GeneralRe: file types Pin
Balkrishna Talele20-Feb-04 22:04
Balkrishna Talele20-Feb-04 22:04 
GeneralRe: file types Pin
Balkrishna Talele20-Feb-04 22:04
Balkrishna Talele20-Feb-04 22:04 
GeneralRe: file types Pin
David Crow23-Feb-04 3:53
David Crow23-Feb-04 3:53 
GeneralMFC42 and VC7.1 Pin
Rohde20-Feb-04 12:13
Rohde20-Feb-04 12:13 
GeneralRe: MFC42 and VC7.1 Pin
Antti Keskinen21-Feb-04 0:01
Antti Keskinen21-Feb-04 0:01 
GeneralRe: MFC42 and VC7.1 Pin
Rohde21-Feb-04 2:26
Rohde21-Feb-04 2:26 
GeneralTopmost property Pin
jlechem20-Feb-04 11:21
jlechem20-Feb-04 11:21 
GeneralRe: Topmost property Pin
User 665820-Feb-04 12:06
User 665820-Feb-04 12:06 
GeneralRe: Topmost property Pin
Balkrishna Talele20-Feb-04 22:07
Balkrishna Talele20-Feb-04 22:07 

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.