API:System.Win.ComObj.TTypedComObject.Create

Aus RAD Studio API Documentation

Delphi

constructor Create;

C++

__fastcall TTypedComObject();
__fastcall TTypedComObject(const System::_di_IInterface Controller);
__fastcall TTypedComObject(TComObjectFactory* Factory, const System::_di_IInterface Controller);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
constructor public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TTypedComObject

Beschreibung

Instantiiert ein COM-Objekt, das nicht Teil eines Aggregatobjekts ist. {{#multireplace:System.Win.ComObj.TTypedComObject.Create|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} erbt von {{#multireplace:System.Win.ComObj.TComObject.Create|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. Der folgende Inhalt bezieht sich auf {{#multireplace:System.Win.ComObj.TComObject.Create|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Instantiiert ein COM-Objekt, das nicht Teil eines Aggregatobjekts ist.

Mit Create wird zur Laufzeit ein COM-Objekt instantiiert, das nicht Teil eines Aggregatobjekts ist

Create reserviert Speicher für ein COM-Objekt und ruft dann direkt den Konstruktor CreateFromFactory auf, wobei im Parameter Controller der Wert nil übergeben wird, um anzuzeigen, dass das COM-Objekt nicht als Teil eines Aggregatobjekts erzeugt wird.

Siehe auch