CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    74

    My Dialog needs my doc pointer! Please help Mr. Expert!

    In my SDI app, I have instantiated mydialog from myview. Of course, I have pDoc from myview, but I wanted to insert items into a list control (from mydialog's constructor). The items (variables) are all in mydoc. How can I get a pointer to mydoc so I can access those variables. Thanks for any help!


  2. #2
    Join Date
    May 1999
    Posts
    128

    Re: My Dialog needs my doc pointer! Please help Mr. Expert!

    easiest way is just to pass a pointer to the doc as an argument of your dialog constructor.



  3. #3
    Join Date
    Apr 1999
    Posts
    74

    Re: My Dialog needs my doc pointer! Please help Mr. Expert!

    Paul, thanks very much. That WAS simple.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured