The information in this article applies to:
SYMPTOMSUsing the CNoAccessor class as a template argument for CCommand or CTable causes the following error: For example, the following code causes the error to occur:
CAUSEThe second argument of the CCommand<> or CTable<> template is the rowset class. By default, this is set to CRowset. The CRowset class assumes that there will be an accessor used. Therefore, it is necessary to specify CNoRowset or some other user-defined rowset class that doesn't rely on an accessor. RESOLUTION
To use CNoAccessor, specify "CNoRowset" for the rowset class argument of
the CCommand or CTable template classes.
If, for some reason, you need to specify CNoAccessor but still want some of
the functionality of the CRowset class, derive a new class from CRowset and
override any functions that rely on an accessor.
STATUSThis behavior is by design. MORE INFORMATIONBelow is an example of how you might use the CNoAccessor class:
Additional query words: kbvc600 kbTemplate kbOLEDB
Keywords : kbtemplate kbOLEDB kbVC600 |
Last Reviewed: July 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |