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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -