Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltry/catch throw to ifstream error Pin
dbslon25-Nov-04 12:07
dbslon25-Nov-04 12:07 
GeneralRe: try/catch throw to ifstream error Pin
Andrew Walker5-Nov-04 14:29
Andrew Walker5-Nov-04 14:29 
Generalhelp:can't use mktyplib Pin
happycpp5-Nov-04 11:44
happycpp5-Nov-04 11:44 
Generalanothere thread call UpdateAllViews() Pin
LeeeNN5-Nov-04 11:05
LeeeNN5-Nov-04 11:05 
GeneralRe: anothere thread call UpdateAllViews() Pin
John R. Shaw5-Nov-04 12:17
John R. Shaw5-Nov-04 12:17 
GeneralRe: anothere thread call UpdateAllViews() Pin
LeeeNN5-Nov-04 12:35
LeeeNN5-Nov-04 12:35 
GeneralRe: anothere thread call UpdateAllViews() Pin
John R. Shaw5-Nov-04 14:04
John R. Shaw5-Nov-04 14:04 
GeneralRe: anothere thread call UpdateAllViews() Pin
Neville Franks6-Nov-04 0:09
Neville Franks6-Nov-04 0:09 
You can't (easilly) use any CWnd functions from a thread that the CWnd wasn't created in. The best way to handle your problem is to use PostMessage() to post back to the main thread and get it to update the views.

Alternatively you could set a flag in your document whenever the data changes and then use CDocument::OnIdle() to check the flag and call UpdateAllViews() if it set, and then reset the flag.

Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
GeneralRe: anothere thread call UpdateAllViews() Pin
LeeeNN8-Nov-04 6:29
LeeeNN8-Nov-04 6:29 
GeneralLinking In Help File Pin
Grahamfff5-Nov-04 10:45
Grahamfff5-Nov-04 10:45 
GeneralDeleting a character in a text file Pin
Nikhil Wason5-Nov-04 9:29
Nikhil Wason5-Nov-04 9:29 
GeneralRe: Deleting a character in a text file Pin
John R. Shaw5-Nov-04 9:50
John R. Shaw5-Nov-04 9:50 
Questioncan i find out free disk space on a computer on network??? Pin
venadder5-Nov-04 8:35
venadder5-Nov-04 8:35 
GeneralDrawing in a Dialog Pin
sir kaber5-Nov-04 7:47
sir kaber5-Nov-04 7:47 
GeneralRe: Drawing in a Dialog Pin
John R. Shaw5-Nov-04 9:30
John R. Shaw5-Nov-04 9:30 
GeneralRe: Drawing in a Dialog Pin
Anonymous5-Nov-04 11:36
Anonymous5-Nov-04 11:36 
GeneralRe: Drawing in a Dialog Pin
John R. Shaw5-Nov-04 12:34
John R. Shaw5-Nov-04 12:34 
GeneralListView_SortItems Pin
Anonymous5-Nov-04 7:03
Anonymous5-Nov-04 7:03 
General(help) Unicode and text files Pin
necroleak5-Nov-04 6:47
sussnecroleak5-Nov-04 6:47 
GeneralRe: (help) Unicode and text files Pin
peterchen5-Nov-04 23:56
peterchen5-Nov-04 23:56 
GeneralRemoving signature from a dll Pin
wrykyn5-Nov-04 6:03
wrykyn5-Nov-04 6:03 
GeneralOwner Drawn Button Pin
Timothy Grabrian5-Nov-04 5:47
professionalTimothy Grabrian5-Nov-04 5:47 
GeneralRe: Owner Drawn Button Pin
Antony M Kancidrowski5-Nov-04 6:12
Antony M Kancidrowski5-Nov-04 6:12 
GeneralRe: Owner Drawn Button Pin
Timothy Grabrian5-Nov-04 7:12
professionalTimothy Grabrian5-Nov-04 7:12 
GeneralRe: Owner Drawn Button Pin
John R. Shaw5-Nov-04 10:30
John R. Shaw5-Nov-04 10:30 

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.