Mfc updating document class variables

6854933580_2c8b688306_z

customer1with a GUI static text control using document/view? thanks, -Andy "The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years.I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing.

I can pass the 'this' pointer from CMy View to CMy Thread but when I #include "My View.h" in My Thread.h then I get a weird compiler error: "error C2143: syntax error : missing ';' before '*'" I get this error any time I try to #include "My View.h" ANYWHERE.It is actually OK to use your CView pointer to call Send Message() or Post Message(), but if it makes you nervous use the m_h Wnd member and :: Send Message() or :: Post Message().David Wilkinson =============== Thread Proc(this); // 'this' is a pointer to CMy View But, in order to make this work I need access to the CMy View structure in CMy Thread, so I have to #include "My View.h" in the top of the file My Thread.h.There are many different ways to view this info: * A graph of the performance of each salesperson.* A Table (like Access) which allows the data to be edited. Register the form as an 'observer' of each customer object e.g.C classes inherently know nothing about threads -- windows know about threads.

You must have an account to comment. Please register or login here!