UltraLite.NET User's Guide
Tutorial: Visual Studio Application
Deploy and run your application
Build the solution.
Ensure that your application builds without errors.
Select Debug
This builds an executable file containing your application and deploys it to the Pocket PC emulator. The process may take some time, especially if it must deploy the .NET Compact Framework before running the application.
The first time you run the application, it should display the following text in a message box:
Connected to a new database.
Subsequent times, it displays the following text in a message box:
Connected to an existing database.
If errrors are reported, you may wish to check that your deployment was completed successfully. For example:
Confirm that the application is deployed into \Program Files\appname, where appname is the name you gave your application in Lesson 1 (CSApp or VBApp).
Confirm that the schema file is deployed into the same directory as the application.
Confirm that the path to the schema file in your application code is correct (see Lesson 3: Connect to the database).
Confirm that you chose Link File when adding the schema file to the project and that you set the Build Action to Content. If you did not, the files will not be deployed to the device.
Ensure that you added a reference to the correct version of ulnet9.dll for your target platform, or ran the ce installer. If you switch between the emulator and a real device, you must change the version of this library that you use. See Lesson 1: Create a Visual Studio project.
Test your application
Insert data into the database.
Enter a name in the text box and click Insert. The name should now appear in the listbox.
Update data in the database.
Select a name from the listbox. Enter a new name in the text box. Click Update. The new name should now appear in place of the old name in the listbox.
Delete data from the database.
You have now written, built, and tested an UltraLite.NET application.
This completes the tutorial.