In a view, I use a dialog (DoModal). I am having trouble addressing my dialog variables from within my view, ie, I want to move my dialog varibles to my document varibles. I can't seem to get Visual C++ 5.0 to let me do this. sonny
Also try not to describe what you want to do using terms like 'move my dialog variables', that just does not make any sense and could therefore be interpreted to mean different things.
If you have read any C++ books you should have seen terms being used like 'assign, scope, visibility' etc. You should try to use these terms since others will recognize them.
You can Get a pointer to your document:
CDocument* xxx;
xxx=GetDocument();
after it, without problems you may use avriables from the document:
OneCViewVariable=xxx->OneCDocumentVariable;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.