|
-
April 6th, 1999, 07:34 AM
#1
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
-
April 6th, 1999, 09:30 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|