Click here to Skip to main content
16,012,759 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
MeterMan6-Mar-04 7:11
MeterMan6-Mar-04 7:11 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
Prakash Nadar6-Mar-04 7:26
Prakash Nadar6-Mar-04 7:26 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
MeterMan6-Mar-04 8:45
MeterMan6-Mar-04 8:45 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
Prakash Nadar6-Mar-04 14:46
Prakash Nadar6-Mar-04 14:46 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
MeterMan6-Mar-04 17:50
MeterMan6-Mar-04 17:50 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
Prakash Nadar6-Mar-04 20:28
Prakash Nadar6-Mar-04 20:28 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
MeterMan6-Mar-04 20:57
MeterMan6-Mar-04 20:57 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
MeterMan6-Mar-04 7:03
MeterMan6-Mar-04 7:03 
Thats where i'm confused. I would assume its an mfc object. if i can't pass it then how do i make it update after the thread is finished? once run completes then it stops.
if have a button onstatbutton()

void CCash3mfcDlg::Onstatbutton()
{
UpdateData(TRUE);
}
then it will update the edit box with the correct value;

so how do i make it either call a function after the thread breaks or whatever?

I even tried putting a call to the onstatbutton() after the while in run(). that didn't work either.

I'm very new to threads and mfc so my question is probably juvenile but i haven't a clue how to fix it.

P.s. I have programming windows 95 by petzold but i find that the code doesn't work unless you use this mak file that is c not c++ is there a good book that explains the win32 api for C++ USERS? AND YES I realize that c++ is c with classes. thats not the point.

Sigh | :sigh:

Win32newb
"Making windows programs worse than they already are"

GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
Michael Dunn6-Mar-04 8:30
sitebuilderMichael Dunn6-Mar-04 8:30 
GeneralRe: Help I can't figure out how to update my edit box in visual c++ mfc Pin
MeterMan6-Mar-04 9:27
MeterMan6-Mar-04 9:27 
GeneralVC .NET 2003 Serial Port Comms Pin
shultas6-Mar-04 5:39
shultas6-Mar-04 5:39 
GeneralRe: VC .NET 2003 Serial Port Comms Pin
bishbosh027-Mar-04 8:45
bishbosh027-Mar-04 8:45 
Generaliterator Pin
nss6-Mar-04 4:41
nss6-Mar-04 4:41 
GeneralRe: iterator Pin
Michael Dunn6-Mar-04 5:02
sitebuilderMichael Dunn6-Mar-04 5:02 
GeneralRe: iterator Pin
nss6-Mar-04 5:44
nss6-Mar-04 5:44 
GeneralRe: iterator Pin
Jörgen Sigvardsson6-Mar-04 14:31
Jörgen Sigvardsson6-Mar-04 14:31 
GeneralRe: iterator Pin
Nemanja Trifunovic6-Mar-04 15:06
Nemanja Trifunovic6-Mar-04 15:06 
GeneralRe: iterator Pin
Jörgen Sigvardsson6-Mar-04 15:16
Jörgen Sigvardsson6-Mar-04 15:16 
QuestionWhat does this mean? Pin
Link26005-Mar-04 21:18
Link26005-Mar-04 21:18 
AnswerRe: What does this mean? Pin
Prakash Nadar5-Mar-04 21:36
Prakash Nadar5-Mar-04 21:36 
AnswerRe: What does this mean? Pin
Roger Wright6-Mar-04 4:16
professionalRoger Wright6-Mar-04 4:16 
AnswerRe: What does this mean? Pin
Michael Dunn6-Mar-04 5:04
sitebuilderMichael Dunn6-Mar-04 5:04 
GeneralRe: What does this mean? Pin
Roger Wright6-Mar-04 5:09
professionalRoger Wright6-Mar-04 5:09 
GeneralRe: What does this mean? Pin
Prakash Nadar6-Mar-04 5:12
Prakash Nadar6-Mar-04 5:12 
GeneralRe: What does this mean? Pin
Roger Wright6-Mar-04 11:53
professionalRoger Wright6-Mar-04 11:53 

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.