void TKVList::Merge (TKVList &l) { index_t i; for (i = 0; i < l.Count (); i++) Define (l.Key (i), l.Value (i)); }
/* Called from SQLConnect/SQLDriverConnect */ BOOL virtodbc_LoginDlg (TKVList &props, HWND hWnd) { /* Run ConfigDSN if setting up a file dsn from ODBCAD32 */ if (props.Value (_T("Driver")) && CalledFromODBCAD32 ()) { TSetupDlg dlg (props); dlg.m_bFileDSN = TRUE; return (dlg.RunModal (g_hInstance, IDD_CONFIGDSN, hWnd) == IDOK); } else { TLoginDlg dlg (props); return (dlg.RunModal (g_hInstance, IDD_LOGINDLG, hWnd) == IDOK); } }