The information in this article applies to:
SYMPTOMSIf MFC42.DLL version 4.21.7002 is installed and ODBC 3.0 is not installed, MFC ODBC applications hit an access violation when they try to call SQLSetConnectOption() in DBCORE.CPP. CAUSE
MFC was changed in version 4.21.7002 (the version which is distributed with
Visual C++ 5.0) to call SQLxxxA versions of the ODBC APIs. For example, the
MFC DLL now calls 'SQLSetConnectOptionA' instead of 'SQLSetConnectOption'.
These new function names are only exposed by the ODBC 3.0 Driver Manager.
They are not available under the ODBC 2.x Driver Manager.
RESOLUTION
It is likely that Visual C++ 4.2x applications will see this problem
because these applications don't ship with ODBC 3.0. To prevent an
application from being exposed to this problem, ship the ODBC 3.0
components rather than the ODBC 2.x components, even if the application is
a Visual C++ 4.2x application.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been corrected in Visual
Studio 97 Service Pack 1.
Q170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why
Keywords : kbprg kbDatabase kbMFC kbODBC kbVC kbVC420bug kbVC500bug kbVS97sp1fix |
Last Reviewed: July 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |