API:System.Win.VCLCom.TComponentFactory.Create

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

constructor Create(ComServer: TComServerObject;
ComponentClass: TComponentClass; const ClassID: TGUID;
Instancing: TClassInstancing; ThreadingModel: TThreadingModel = tmSingle);

C++

__fastcall TComponentFactory(System::Win::Comobj::TComServerObject* ComServer, System::Classes::TComponentClass ComponentClass, const GUID &ClassID, System::Win::Comobj::TClassInstancing Instancing, System::Win::Comobj::TThreadingModel ThreadingModel);

プロパティ

種類 可視性 ソース ユニット
constructor public
System.Win.VCLCom.pas
System.Win.VCLCom.hpp
System.Win.VCLCom TComponentFactory

説明

TAutoObjectFactory オブジェクトをインスタンス化します。

System.Win.VCLCom.TComponentFactory.Create は System.Win.ComObj.TAutoObjectFactory.Create を継承しています。以下の内容はすべて System.Win.ComObj.TAutoObjectFactory.Create を参照しています。

TAutoObjectFactory オブジェクトをインスタンス化します。

Create は、TAutoObjectFactory オブジェクトのためのメモリを確保し、継承された Create を、同じパラメータを渡して呼び出します。 その後、DispIntfEntry および DispTypeInfo の各プロパティを初期化し、エラー時に EOleError 例外を発生させます。 Create は、ErrorIID プロパティを DispIntfEntry を指すように設定します。

クラス ファクトリは、ユニットの初期化セクションでインスタンス化されていなければならず、そのユニットには、自分たちがインスタンス化する CoClass のためのコードが含まれています。 ファクトリは、サーバーのロード時に自動的に利用可能になります。

関連項目