CornedBee
May 5th, 2002, 10:58 AM
I don't know ADO, only DAO (I heard they are pretty similar in concept).
Could it be that the MoveLast call in GetNewKey screws something up? Will m_rsRecSet be altered when you call m_pRs->MoveLast? And why don't you use the excellent DAO support in MFC?
BTW, you should use _tcscpy when working with windows, just like you should always use TCHAR instead of char and wrap all strings with _T("string"). This makes it easy to convert your app to UNICODE support. (Far better language support for strange character sets (Greek, Russian, Japanese, ...) and slightly better performance on WinNT, required for WinCE)
Could it be that the MoveLast call in GetNewKey screws something up? Will m_rsRecSet be altered when you call m_pRs->MoveLast? And why don't you use the excellent DAO support in MFC?
BTW, you should use _tcscpy when working with windows, just like you should always use TCHAR instead of char and wrap all strings with _T("string"). This makes it easy to convert your app to UNICODE support. (Far better language support for strange character sets (Greek, Russian, Japanese, ...) and slightly better performance on WinNT, required for WinCE)