|
-
April 24th, 1999, 10:29 PM
#1
Sharing Class Instance between Views in SDI environment ?
This may be a simple one : I created a multi view SDI environment with a custom class. Since Instances of this class need tobe accessible from within each view I declared them in CDoc (regular declaration 'CSkills m_Skills;') but cannot access any of the member function from the views. Funny enough when I start typing 'm_Skills.' the correct list of member functions is displayed but compiling it creates an error message stating that 'm_Skills' is an undeclared identifier.
Should place the declartion somewhere else ? I tried going back to CMainFrm causing a number of Link errors (duplicate declaration of m_Skills in object CDoc ?!?!).
Thank you for your suggestions.
Pras
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
|