CreateObject

 

Description

Create an automation (COM) object.

Syntax

Object CreateObject( LPCSTR lpcszObjectName )

Parameters

lpcszObjectName
[input]Name of the object to be created

Return

Returns a reference to the created object.

Examples

EX1

void    CreateObject_ex1()
{
    Object    obj;
    // Create an MS Word application object:
    obj = CreateObject("Word.Application");
    // Make the application visible
    obj.Visible = true;
}

See Also

Header to Include

origin.h

Reference