Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can i get handle of edit control Pin
Pryabu16-Aug-10 3:42
Pryabu16-Aug-10 3:42 
QuestionIXMLDomDocument / IXMLHTTPRequest / Credentials Pin
Steve Thresher16-Aug-10 2:19
Steve Thresher16-Aug-10 2:19 
QuestionCListCtrl Pin
Benjamin Bruno15-Aug-10 22:32
Benjamin Bruno15-Aug-10 22:32 
AnswerRe: CListCtrl Pin
Nuri Ismail15-Aug-10 22:53
Nuri Ismail15-Aug-10 22:53 
AnswerRe: CListCtrl Pin
Essey.Dong16-Aug-10 17:12
Essey.Dong16-Aug-10 17:12 
Questionmfc VC6++ threading Pin
j.v.r.15-Aug-10 14:20
j.v.r.15-Aug-10 14:20 
AnswerRe: mfc VC6++ threading Pin
Richard Andrew x6415-Aug-10 14:59
professionalRichard Andrew x6415-Aug-10 14:59 
AnswerRe: mfc VC6++ threading Pin
Aescleal15-Aug-10 22:01
Aescleal15-Aug-10 22:01 
It's because you're passing a (non-static judging by the m_ variable in it) member to AfxBeginThread.

I'm hoping there's a bit more to your code as what you've written and appear to want to do is spin off a thread to assynchronously update an edit control with something provided from another thread. While we're on the subject are you sure the casts you've written are really going to do what you want them to? You're passing a pointer to an integer into the thread function and then casting it back to a structure, not an int.

As a quick hint - do all your UI programming on one thread. By all means spin off other threads to do work BUT don't try and update the UI state from these other threads. Most programmers (including/especially me) aren't clever enough to pull that one off properly. Over 50% of the bugs I've had to sort out since 1995 have been related to threading.

Cheers,

Ash
AnswerRe: mfc VC6++ threading Pin
Eugen Podsypalnikov16-Aug-10 0:55
Eugen Podsypalnikov16-Aug-10 0:55 
AnswerRe: mfc VC6++ threading Pin
David Crow16-Aug-10 3:29
David Crow16-Aug-10 3:29 
QuestionProcess and memory Pin
keloth8715-Aug-10 4:15
keloth8715-Aug-10 4:15 
AnswerRe: Process and memory Pin
Maximilien15-Aug-10 6:07
Maximilien15-Aug-10 6:07 
GeneralRe: Process and memory PinPopular
Tim Craig15-Aug-10 10:48
Tim Craig15-Aug-10 10:48 
GeneralRe: Process and memory Pin
ThatsAlok16-Aug-10 20:15
ThatsAlok16-Aug-10 20:15 
GeneralRe: Process and memory Pin
harold aptroot15-Aug-10 10:56
harold aptroot15-Aug-10 10:56 
GeneralRe: Process and memory PinPopular
Iain Clarke, Warrior Programmer16-Aug-10 1:47
Iain Clarke, Warrior Programmer16-Aug-10 1:47 
GeneralRe: Process and memory Pin
Luc Pattyn16-Aug-10 2:55
sitebuilderLuc Pattyn16-Aug-10 2:55 
GeneralRe: Process and memory Pin
Iain Clarke, Warrior Programmer16-Aug-10 3:10
Iain Clarke, Warrior Programmer16-Aug-10 3:10 
AnswerRe: Process and memory Pin
Steve Thresher16-Aug-10 3:19
Steve Thresher16-Aug-10 3:19 
QuestionChange collapse/expand icons in treeview Pin
Jamie Kenyon15-Aug-10 1:17
Jamie Kenyon15-Aug-10 1:17 
AnswerRe: Change collapse/expand icons in treeview Pin
Richard MacCutchan15-Aug-10 2:15
mveRichard MacCutchan15-Aug-10 2:15 
GeneralMessage Removed Pin
15-Aug-10 9:33
Jamie Kenyon15-Aug-10 9:33 
GeneralRe: Change collapse/expand icons in treeview Pin
Richard MacCutchan15-Aug-10 21:25
mveRichard MacCutchan15-Aug-10 21:25 
AnswerRe: Change collapse/expand icons in treeview Pin
Matt U.15-Aug-10 4:23
Matt U.15-Aug-10 4:23 
QuestionDiff bw BOOL and bool?? Pin
AmbiguousName14-Aug-10 22:56
AmbiguousName14-Aug-10 22:56 

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.