Lessons learned migrating to Visual Studio 2012 and .NET 4.5 - CodeProject:
and here - about CDatabase and CRecordset issue:
http://stackoverflow.com/questions/12714310/crecordsetsnapshot-doesnt-work-in-vs2012-anymore-whats-the-alternative
One of the major changes in the ODBC that MS did for MFC is
changing the cursor type while opening DB connection.
They change it from SQL_CUR_USE_ODBC
to be SQL_CUR_USE_DRIVER
It seems that while
accessing DB2 db
via MFC/odbc there is no runtime error, when I used MS default
implementation at vs2013(e.g. SQL_CUR_USE_DRIVER), when accessing MSSQL via odbc there are runtime error "feature not implemnted" while trying to update sanpshot CRecordset.
the fix at the moment is as explain in the above link , override the CDatabase OpenEx and use the "old" cursor type SQL_CUR_USE_ODBC.
in case of huge obj files follow this:
Avoid overriding from Template class , its better to use Proxy pattern , and gave it as a data member.
No comments:
Post a Comment