BCGControlBar Pro for MFC
BOOL CBCGPChartADODataProvider::OpenDB ( LPCTSTR  lpszConnectionStr,
LPCTSTR  lpszUserName = _T(""),
LPCTSTR  lpszPassword = _T(""),
LPARAM  lOptions = 0 
)
inline

Opens connection to database.

Returns
TRUE, if the method succeeds; otherwise FALSE.

This method opens connection to the database file specified in the connection string.

Parameters
lpszConnectionStrConnection string
lpszUserNameUser name
lpszPasswordPassword
lOptionsOptions