Re: I have a problem: CodeGear := TCompany.Create;



Uses Borland, Microsoft;
Type
TCodeGear = Class(TBorland)
.
.
IDE : TBorland.TIde;
.
.
end;
..
..
..
var
B: TBorland;
C: TComponent;
begin
B := B.Create(nil);
C := TCodeGear.Create(B);
C.IDE := B.IDE;
B.IDE := nil;
C.Owner := B; // maybe, it is not correct. Because, don't remember
Microsoft.

{
C.Owner := TMicrosoft(B); // is it correct?

- or -

C.Parent := B;
C.Owner := Microsoft;
}
..
..
end;
..
..
..

.