AfxGetHENV
TRY
TOC
Collapse the table of content
Expand the table of content

AfxGetHENV

 

You can use the returned handle in direct ODBC calls, but you must not close the handle or assume that the handle is still valid and available after any existing CDatabase- or CRecordset-derived objects have been destroyed.


HENV AFXAPI AfxGetHENV( );

The handle to the ODBC environment currently in use by MFC. Can be SQL_HENV_NULL if there are no CDatabase objects and no CRecordset objects in use.

Requirements

Header: afxdb.h

Show:
© 2016 Microsoft