RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.CreateObjectFromInfo Method

Creates an OLE object matching the specified TCreateInfo record.

Pascal
procedure CreateObjectFromInfo(const CreateInfo: TCreateInfo);
C++
__fastcall CreateObjectFromInfo(const TCreateInfo CreateInfo);

Call CreateObjectFromInfo to create a linked or embedded OLE object based on the specifications in the CreateInfo parameter. CreateInfo specifies whether the object should be created from a file, from a data transfer object, or from a class identifier, and provides the necessary supporting information. CreateInfo also indicates whether the OLE object should be displayed as an Icon, and allows the icon to be specified. If there's already an OLE object in the container, it is destroyed and any changes the user made to it are discarded.

Note: The CreateLinkToFile, CreateObject, and CreateObjectFromFile methods are one-line calls for the most common types of OLE objects. They can be used instead of filling out the TCreateInfo record.
 

CreateLinkToFile 

CreateObject 

CreateObjectFromFile 

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!