I'm writing a program in Visual C++ 6.0 that retrieves data from an Access database and generates text files. The database opens fine, but when I open the database Windows shows a dialog prompting me to select a data source. This is the code I'm using to open the database:
CString str = "ODBC;DSN=MS Access Database;DBQ=";
str += filename_;
str += ";DriverId=281;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;";
db_.OpenEx(str); //db_ is a CDatabase
Is there any way to keep the dialog from popping up?
CString str = "ODBC;DSN=MS Access Database;DBQ=";
str += filename_;
str += ";DriverId=281;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;";
db_.OpenEx(str); //db_ is a CDatabase
Is there any way to keep the dialog from popping up?