Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View/Dialog 1

Status
Not open for further replies.

sonny

Programmer
Dec 22, 2000
3
US
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
 
sonny,

We will have to see some of the code to help.

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.

Good luck
-pete
 
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;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top