This sample application converts a desktop database in .mdb format to .cdb format and installs the .cdb file in the object store of the desktop emulator. The sample consists of a desktop application and a Windows® CE application. The desktop application opens an .mdb file and converts the contents of the .mdb file to a text file. After the conversion is done, the application uses the empfile.exe utility that comes with the platform Software Development Kit (SDK) to register the text file in the object store of the emulator. The Windows CE application in the emulator opens the .tdb file and converts the text into the Windows CE format using the ADOCE control. The data is stored in a .cdb file. Once the conversion is complete, you can manipulate the data in the .cdb file with any application that uses the ADOCE control.
To Run the Desktop application
To Run the Windows CE Application
Any errors that occur during the conversion will appear in the Text box on the form.
In order to run this application, you must have the following items installed:
If the .tdb file does not appear in the emulator's object store after you have run the desktop application, move empfile.exe into the folder the desktop application is run from.
For more detail, see the comments in the source code.
This sample was written in Visual Basic 5.0 and will run in Visual Basic 6.0 without modification.