c++ - CDatabase.OpenEX Connection String issue -
i want open access database without displaying dialog box ( incase of error )
the code use
cdatabase db; cstring constring; cstring dbpath = _t("c:\testdb.mdb"); constring.format(_t("odbc;driver={microsoft access driver (*.mdb)};dsn='';dbq=%s"), dbpath) ; db.openex(constring,cdatabase::noodbcdialog); // fails open connection db.open(null, false, false, constring); // works well, displays dialog box in case of error.
Comments
Post a Comment