View Single Post
  #1   Spotlight this post!  
Unread 16-12-2006, 16:59
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
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