다음을 통해 공유


Creating an Accessor to Fetch Data

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.