Skip to main content

Past Blast

Featured Products

Windows Mobile Developer Controls
Windows Mobile Developer Controls
Stay in touch using the DEVBUSS RSS feeds.
 

News

Windows Mobile Developer Controls
Windows Mobile Developer Controls

Use eVB (eMbedded Visual Basic) and ADOCE to access your Pocket PC database.

Written by Derek Mitchell  [author's bio]  [read 133847 times]
Edited by Derek

Page 1  Page 2 

The goal of this tutorial is to use eVB to access a database that has been transferred to your Pocket PC. If you have not already imported some sample data to your Pocket PC then read Transferring data onto your Pocket PC.

This will tutorial will show you how to:

  • create an ADOCE connection to a CE database (.cdb file)
  • read data into a list box using an ADOCE recordset

In this example I will be creating a new project for the Pocket PC, so I select Windows CE for the Pocket PC when the New Project dialog comes up.

The first thing I do is change the Scale Mode of the Form object from Twip to Pixel. Next select Project Properties from the Project menu.

  • Set the Project Name, Description and Remote Path.
  • Make the sure the Frequency of the Update Components is set to Ask or Always and the Runtime Files/Project Components under Components to Update has nothing checked.
  • Change the Run on Target option from Pocket PC Emulation to Pocket PC (Default Device).

Click OK.

Select the References from the Project menu

and check the CE ADO Control 3.0 followed by OK.

Next save the Project and Form in an appropriate directory.

Next Page