Creating an Accessor to Fetch Data

OLE DB Programmer's Reference

Before fetching cell data, the application has to create an accessor that describes the structure of the data buffer. This is done by calling IAccessor::CreateAccessor. The accessor created using this method is given as an input parameter to IMDDataset::GetCellData. Because GetCellData can fetch multiple cells in a single call, the provider must know the size of each cell in the data buffer. Applications must provide this size in the cbRowSize argument of IAccessor::CreateAccessor. Failure to do so will result in an error from this method, and an accessor will not be created.

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net