|
Visual C++ 2005 Designer
I am using the inbuilt designer to build a Multi Document Interface. Now I can inherit the Children forms form the Parent and display them or access their objects. The designer uses the Header flies for everything.
The Problem occurs when I try to inherit a object form the Parent form to one of the Children.
Example:
(Parent Form/parent.h)
#include "Child.h"
ref class Parent: ......
{
Child^ c = gcnew Child;(No problem here)
bla bla.....
}
But when I also try to do this
(Child Form/child.h)
#include "Parent.h"
ref class Child: ....
{
Parent^ p = gcnew Parent;(give me a bunch of errors that I know are not wrong)
bla bla
}
I can find anything on this on the internet or the help files.
Can some one explain some possible reasons or what it means? Thanks
|