OpenDatabase

#include "BIDB.h"

 

CDatabase* CALLBACK OpenDatabase(LPCTSTR szDSNName)

Description

This function opens the specified ODBC database. If szDSNName is NULL, the functions displays the ODBC dialog to select database.

Parameters

LPCTSTR

szDSNName

Name of the DSN or NULL.

Additional Information

This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.

Return values

Returns the pointer to the CDatabase object or NULL on error. The GetLastDBError retrieves the last error code.

Requirements

Header :     Declared in BiDb.h; include BiDb.h.

Library :    Use BiDb.lib.

DLLs :       BiDb.dll.