9.4 Object Creation and Deletion Functions

The following functions support adding or removing an object from a container document.

Function Description

OleClone Creates an exact copy of another object.
OleCopyFromLink Creates an embedded object copy of a linked object.
OleCreate Creates an embedded object of a specified class.
OleCreateFromClip Creates an embedded object from data on the clipboard.
OleCreateFromFile Creates an embedded object using the contents of a file.
OleCreateFromTemplate Creates an embedded object using a file as a template.
OleCreateInvisible Creates an embedded object with no data or display.
OleCreateLinkFromClip Creates a linked object from data on the clipboard.
OleCreateLinkFromFile Creates a linked object with a link to a specified file.
OleDelete Permanently deletes an object from a document.
OleLoadFromStream Loads an object from a document being loaded.
OleObjectConvert Creates a static object from an existing object.
OleRelease Frees an object from memory.

The object creation and deletion functions are described in the following sections.