We help IT Professionals succeed at work.

C++, Connect to Access DB with no ODBC entry?

I'm using VC++ 6.0

Consider:

CDatabase pDB=NULL;
pDB->OpenEx(_T("DSN=MYDBNAME;UID=me;PWD=mypw"));

The ODBC entry points to a Microsoft Access Database.

Is it possible for me to connect to the database file in the absence of an ODBC entry?

Comment
Watch Question

Commented:
you would need to use an ADO connection
maybe the following link helps you:
http://cherrycitysoftware.com/ccs/Providers/ProvPalmDB.aspx
Commented:
or this link:
Writing a Visual C++ ADO Application
http://www.informit.com/library/content.aspx?b=Visual_C_PlusPlus&seqNum=213

Author

Commented:
ahh I see. thanks!

Author

Commented:
perfect