ATL for Ole Db
-
Hey i had the same problem. Well there is no EOF or BOF. Check for S_OK as till S_OK is returned EOF is not reached. i solved it using that. Gaurav Jain K.K. Wagh Institue of Engineering Education and Research, Nashik, Maharashtra, India. gauravjain911@yahoo.com
-
Hey i had the same problem. Well there is no EOF or BOF. Check for S_OK as till S_OK is returned EOF is not reached. i solved it using that. Gaurav Jain K.K. Wagh Institue of Engineering Education and Research, Nashik, Maharashtra, India. gauravjain911@yahoo.com
I also found the OLE DB consumer templates does not have the EOF/BOF status like the ODBC(MFC) class which I used to access the database before. When CRowset class was first initialized by CCommand::Open method, the 'cursor' does not point to the first record like the ODBC(MFC) class. The only way to check if there is anything returned from the database is to call CRowset::MoveNext() method and check the return value to determine EOF status. Anyway, thanks for your help.
Lisoft