|
-
October 19th, 1999, 08:33 AM
#1
Classes refer to each other
I created two classes, a document one and a dialog one, I need to create a member variable that contains a pointer to the other class for both of them.
To do this i need to include the declaration file (.h)of a class into the (.h) of the other and viceversa, but here i must do something wrong, since when in the dialog class i declare
public:
CMyDoc* m_pMyDoc;
i get a syntax error : missing ';' before '*'
Please let me know
Thanks
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
|