I have written a Windows Service to access an Oracle database. A dialog box
appears, prompting for user logon if the database is not accessable due to
network problems
I just want the connection to fail quietly.
Here's a little code snippet.
// Create workspace.
CDaoWorkspace wspCurrent;
wspCurrent.Create("MyWorkspace","MyUser","MyPasswo rdUser");
wspCurrent.Append();
// Open database.
CDaoDatabase dbsCurrent(&wspCurrent);
CDaoDatabase dbsCurrent;
dbsCurrent.Open(_T(""),FALSE,FALSE,ODBC;"UID=MyUse r;PWD=MyPasswordUser;DSN=M
yDSN;");
Any help would be appreciated...
Jamie