PRB: HENV Not Accessible When Using MFC ODBC ClassesID: Q167910 The information in this article applies to:
SYMPTOMSWhen you dynamically link to MFC, the MFC ODBC classes use an ODBC environment handle (HENV) that is declared local to the MFC DLL. Therefore, applications using the MFC DLL cannot access MFC's HENV.
CAUSEThese classes were not designed to make the HENV available to the programmer.
RESOLUTIONIf you need access to the HENV, link MFC statically and use the code below.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Sample Code
Additional query words: kbVC420 kbVC500 kbVC600
|
|
Last Reviewed: August 8, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |