Windows CE database programming

zhaozj2021-02-11  238

Windows CE database programming

Create a database

Void CDB :: Createdatabase () {/ ============================================ ========= ccedbdatabase mydb;

// Check if Database :: EXISTS (_T ("Test Database")) {// CREATE DATABASE IF IT DOESN'T EXIST ALREADY MyDb.create (_t ("Test Database"));}} // CreatedTabase

2. Open the database

CcedbDatabase mydb; // open databasemydb.open (_t ("test database"));

3. Delete the database

Ccedbdatabase mydb; if (mydb.open)))).

4. Turn off the database

Ccedbdatabase mydb; mydb.open (_t ("test database")); mydb.close ();