RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DelphiInterface::DelphiInterface Constructor ()

Creates an instance of System::DelphiInterface::DelphiInterface.

Pascal
constructor Create;
constructor Create(const rhs: DelphiInterface<ANOTHERINTF> &);
constructor Create(const rhs: DelphiInterface<T> &);
constructor Create(var rhs: T);
C++
__fastcall DelphiInterface<T>();
template <class ANOTHERINTF> __fastcall DelphiInterface<T>(const DelphiInterface<ANOTHERINTF> & rhs);
__fastcall DelphiInterface<T>(const DelphiInterface<T> & rhs);
__fastcall DelphiInterface<T>(T* rhs);

The System::DelphiInterface::DelphiInterface constructor is overloaded to create a System::DelphiInterface::DelphiInterface in one of three ways: 

When used with no parameters, System::DelphiInterface::DelphiInterface creates a NULL interface. 

When used with another System::DelphiInterface::DelphiInterface object (the copy constructor), System::DelphiInterface::DelphiInterface creates a new copy of the interface specified by rhs, incrementing the reference count of the underlying interface. 

When used with an interface pointer of the underlying type, System::DelphiInterface::DelphiInterface wraps the underlying interface specified by rhs and increments its reference count. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!