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

    View not set to NULL when initialized

    I store an explicit pointer to my view in my document class. I initialize this view pointer to NULL in the constructor of the document. During the document open process I am checking for the existance of the view and do something if the view exists. I check for NULL however even tho the view was intialized to NULL the value is 0xcdcdcd something similar to this. I read something about this in the Nov 98 issue of MSJ but I do not have access to this issue anymore. There was a work around published for this problem in that issue. Can anyone recall what this was and how I should check for the view being NULL. thanks for your help


  2. #2
    Join Date
    Apr 1999
    Posts
    383

    Re: View not set to NULL when initialized

    CDocument keeps a list of all the views it 'owns', so there should be no need to keep a separate view pointer...

    I don't know why your pointer value changes. What do you use it for?

    Dave


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