RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.CreateObject Method

Creates an embedded OLE object given its class name (also known as programmatic identifier).

Pascal
procedure CreateObject(const OleClassName: string; Iconic: Boolean);
C++
__fastcall CreateObject(const AnsiString OleClassName, Boolean Iconic);

Call CreateObject to create an OLE object using the class name (also known as programmatic identifier) specified by the OleClassName parameter. The Iconic parameter indicates whether the object is shown as an icon (true) or displayed as it would be in the server application (false). If there's already an OLE object in the container, it is destroyed and any changes the user made to it are discarded. 

 

CreateLinkToFile 

CreateObjectFromFile 

CreateObjectFromInfo 

OleClassName 

Creating Clients for Servers That Do Not Have a Type Library

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