|
virtual bool COView::OpenWithCmnd(IOpenRowset *pIOpenRowset, LPCOLESTR strSelect, DBPROPSET *pDBPropSet=NULL, REFGUID, ULONG nPropSets=1, guidDialect=DBGUID_DEFAULT); Return Value true if successful; otherwise false. Parameters [in] pIOpenRowset: A pointer to interface IOpenRowset wired with a TSession object. [in] strSelect: A unicode string to generate a rowset. [in] pDBPropSet: A poinetr to an array of sets of rowset properties. [in] nPropSets: The size of the array of sets of rowset properties, pDBPropSet. [in] guidDialect: A GUID that specifies the syntax and general rules for the provider to use in parsing a statement. Remark Calls this function to open a COView object directly through a TCommand object. After setting filters and sorts by calling functions COView::SetFilter and COView::SetSortOrder, you can call COView::OpenRowset to open a CRBase object. To be successful, An OLEDB provider must support TView object. For other ways to open a COView object, see the function COView::OpenView and global template functions. |