RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.CreateLinkToFile Method

Creates a linked OLE object from the contents of a file.

Pascal
procedure CreateLinkToFile(const FileName: string; Iconic: Boolean);
C++
__fastcall CreateLinkToFile(const AnsiString FileName, Boolean Iconic);

Call CreateLinkToFile to create a linked OLE object from the file specified by the FileName parameter. Iconic specifies whether the object is shown as an icon (true) or displayed as it would be in the server application (false). If there is already an OLE object in the container, it is destroyed and any changes the user made to it are discarded. 

 

CreateObject 

CreateObjectFromFile 

CreateObjectFromInfo 

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!