rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWDBODBCLibSystemHandle Class Reference
[DB Access Module for ODBC]

Provides a mechanism for making direct calls to the ODBC API. More...

#include <rw/db/odbcsrc/odbsysh.h>

Inheritance diagram for RWDBODBCLibSystemHandle:
RWDBSystemHandle

List of all members.

Public Member Functions

SQLHDBC hdbc () const

Detailed Description

Class RWDBODBCLibSystemHandle contains the SQLHDBC used by the RWDBConnection.

Note:
Use of this class reduces an application's portability.

Synopsis

 #include <rw/db/odbcsrc/odbsysh.h>

 RWDBODBCLibSystemHandle* sys =
       (RWDBODBCLibSystemHandle*)myConnection.systemHandle();

Examples

If it is necessary for your application to make calls directly to the ODBC API, proceed as in the following example.

 #include <windows.h>
 #include <sql.h>
 #include <sqlext.h>
 #include <rw/db/odbcsrc/odbsysh.h>

 RWDBConnection odbcConnect = myDbase.connection();
 RWDBODBCLibSystemHandle* handle =
               (RWDBODBCLibSystemHandle*) odbcConnect.systemHandle();
 SQLHDBC sqlhdbc = handle->hdbc();
 // Use sqlhdbc for ODBC API calls.

Member Function Documentation

SQLHDBC RWDBODBCLibSystemHandle::hdbc (  )  const

Returns the SQLHDBC encapsulated by the respective RWDBConnection.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.