rileo8
asked on
Open Pockect Access Database .cdb file from c++ or qt
Hi,
there is a way to open a .cdb file (Pocket Access Database) from c++ or qt?
Files are created on a windows ce platform but i need to open them in a program i'm developinf under windows xp.
there is a way to open a .cdb file (Pocket Access Database) from c++ or qt?
Files are created on a windows ce platform but i need to open them in a program i'm developinf under windows xp.
ASKER
I'm doing like this:
but on:
db.open()
it gives me this error: QODBC3: unable to connect
db= QSqlDatabase::addDatabase("QODBC");
db.setHostName("localhost");
db.setDatabaseName("DRIVER={ Pockect Access Database (*.cdb)}DBQ="+mdbFile);
but on:
db.open()
it gives me this error: QODBC3: unable to connect
I think connection string is wrong:
It is more than likely.
I am at work right now cant investigate it from here, can you google how to connect with this Data base using ODBC using other programing languge like .net or silverlight or any other tool, and trying using same connection string from Qt.
Let me know I think this should not be tough to find correct connection string.
Sorry i cant help much from my work place
It is more than likely.
I am at work right now cant investigate it from here, can you google how to connect with this Data base using ODBC using other programing languge like .net or silverlight or any other tool, and trying using same connection string from Qt.
Let me know I think this should not be tough to find correct connection string.
Sorry i cant help much from my work place
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I didn't found a way to solve my problem so i simply change the way program works...
QSqlDatabase myDb = QSqlDatabase::addDatabase(
myDb.setHostName("localhos
myDb.setDatabaseName("DRIV
Hope this helps