Unicorn XML Toolkit
Version 1.00.00

Namespace SomOle
Class COleObjectManager

class COleObjectManager: public CObjectManager {
public:
    COleObjectManager();
    ~COleObjectManager();
public:
    XObject Connect(const CString &strSource);
    };

The SOM object manager for Microsoft Windows ActiveX platform.

This class is used to create instances of ActiveX automation objects having known programmatic identifiers. Instances of class Som::CObject in this implementation are represented by pointers to dispatch interfaces ( LPDISP ) of ActiveX automation objects.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
Som::CObject
Constructor/Destructor Summary
COleObjectManager ();
����������Constructs the object manager.
~COleObjectManager ();
����������Destroys the object manager.

Function Summary
XObject Connect (const CString &strSource);
����������Connects to the ActiveX object.

Constructor/Destructor Detail

COleObjectManager

COleObjectManager();

Constructs the object manager.

~COleObjectManager

~COleObjectManager();

Destroys the object manager.

Function Detail

Connect

XObject Connect(const CString &strSource);

Connects to the ActiveX object.

This function creates an instance of an automation object with the specfied programmatic identifier (ProgID). The programmatic identifier, therefore, serves as the identification string for the automation object.

The effect of this function can be described in terms of Windows SDK function calls; it is similar to the call to CLSIDFromProgID (obtains CLSID from ProgID), followed by the call to CoCreateInstance (creates an instance of an object specified by CLSID).

The source string (parameter strSource ) must contain the programmatic identifier (ProgID) of the object; it must be acceptable as the first argument of the CLSIDFromProgID Windows SDK function.

Parameters:
strSource - the programmatic identifier (ProgID) of the ActiveX object
Returns:
the automation object referenced by the specified programmatic identifer

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.