template<class T>
bool Open(CORow *pORow, T& Object, LPOLESTR strColName);

template<class T>
bool Open(CORow *pORow, T& Object, DBID dbidCol=DBROWCOL_DEFAULTSTREAM)

Return Value

        true if successful; otherwise false.

Parameters

        [in] pORow:

                A pointer to an opened CORow based object and pORow can't be NULL.

        [in] Object

                A reference to one of CRowset, CORow and COStream objects to be opened.

        [in] strColName:

                A unicode string indicating the name of the column.

        [in] dbidCol:

                A  DBID containing the name of the column to open.

Remark

        Opens an appropriate object from a row object according to a given column. Refers to IRow::Open. If failed, the returned error message is stored in Object by default. For how to use it, see the example oledb25.