Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC: Can popup dialog in SDI app access ribbon commands? Pin
Jamie Kenyon16-Aug-10 9:25
Jamie Kenyon16-Aug-10 9:25 
AnswerRe: MFC: Can popup dialog in SDI app access ribbon commands? Pin
«_Superman_»16-Aug-10 18:27
professional«_Superman_»16-Aug-10 18:27 
Questionunable to install htk tool kit Pin
aspirant a16-Aug-10 7:42
aspirant a16-Aug-10 7:42 
AnswerRe: unable to install htk tool kit Pin
Rick York16-Aug-10 9:14
mveRick York16-Aug-10 9:14 
GeneralRe: unable to install htk tool kit Pin
aspirant a16-Aug-10 19:31
aspirant a16-Aug-10 19:31 
GeneralRe: unable to install htk tool kit Pin
Rick York16-Aug-10 20:27
mveRick York16-Aug-10 20:27 
GeneralRe: unable to install htk tool kit Pin
aspirant a16-Aug-10 21:00
aspirant a16-Aug-10 21:00 
GeneralRe: unable to install htk tool kit Pin
aspirant a18-Aug-10 5:52
aspirant a18-Aug-10 5:52 
GeneralRe: unable to install htk tool kit Pin
Rick York18-Aug-10 7:04
mveRick York18-Aug-10 7:04 
GeneralRe: unable to install htk tool kit Pin
aspirant a18-Aug-10 7:50
aspirant a18-Aug-10 7:50 
QuestionExport dialog fail in regular dll Pin
MKC00216-Aug-10 6:28
MKC00216-Aug-10 6:28 
QuestionHow can i get handle of edit control Pin
Pryabu16-Aug-10 2:33
Pryabu16-Aug-10 2:33 
AnswerRe: How can i get handle of edit control Pin
Cool_Dev16-Aug-10 3:09
Cool_Dev16-Aug-10 3:09 
GeneralRe: How can i get handle of edit control Pin
Pryabu16-Aug-10 3:10
Pryabu16-Aug-10 3:10 
GeneralRe: How can i get handle of edit control Pin
Cool_Dev16-Aug-10 3:24
Cool_Dev16-Aug-10 3:24 
GeneralRe: How can i get handle of edit control Pin
Pryabu16-Aug-10 3:25
Pryabu16-Aug-10 3:25 
GeneralRe: How can i get handle of edit control Pin
Cool_Dev16-Aug-10 3:40
Cool_Dev16-Aug-10 3:40 
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

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.