ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Prices
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


Office applications Toolkit

Writing a database application for PDAs

Khalid Shaikh. Builder.com Builder.com

Published: 30 Aug 2002 15:47 BST

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

To demonstrate the process of creating a database application, we'll walk through an app that tracks movie information, such as a synopsis and ratings. Figure A outlines the class inheritance hierarchy and provides an overview of the application architecture. Notice the addition of an independent CDatabase class and CRecord class.

Figure A

Class inheritance hierarchy

The three main property pages are:

  • CPropPage1: Overview--This is used to view the list of movies and their ratings. The user can also delete records from this dialogue by tapping and holding on a movie (Figure B).
  • CPropPage2: View Movies--This allows the user to navigate backward and forward through the records in a read-only fashion (Figure C).
  • CPropPage3: Add Movie--This allows the user to add a record to the database (Figure D).

Figure B


Deleting a record from the database

Figure C


Viewing movies

Figure D


Adding a movie to the database

The Database API encompasses the CDatabase class and the movie record structure within the CRecord class. Figure E illustrates the composition of the components.

Figure E


Class association and composition

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

Did you find this article useful?
26 out of 58 people found this useful


Full Talkback thread

0 comments


Company/Topic Alerts

Create a new alert from the list below:








Featured Talkback

Why do so many (virtually all) software packages think that they are so important that they have to be started automatically every time the computer boots? What is the largest number of "speed access", "update check", "camera download" and whatever other background programs you have ever seen running? Of those, how many did you really need?

By: J.A. Watson

Read full story:
Annoying software: a rogues' gallery

Discussions

Jim Mader Jim Mader

Hotmail

Friday 29 August 2008, 12:28 AM

4 comments
da9938k da9938k

same thing happened to me!!

Thursday 28 August 2008, 11:20 PM

3 comments
da9938k da9938k

same thing happened to me!!

Thursday 28 August 2008, 11:20 PM

3 comments
da9938k da9938k

same thing happened to me!!

Thursday 28 August 2008, 11:20 PM

3 comments

Vista Upgrade Blog

Official MS Windows 7 Bloggers

Check this out: http://blogs.msdn.com/e7...spx Its an official blog "Engineering Windows 7" Nothing. That's what is revealed. Until there is real... More

5 comments

Microsoft's Mojave just a desert vista

It didn't seem fair to wade into Microsoft's “Mojave Experiment” advert quite so soon after the flat earth incident. But The Economist has no such qualms: in this week's issue, it wonders... More

6 comments

... But Still a Few Things Amiss (with...

It's not all roses with Vista, of course. I had my first BSOD over the weekend, when I was turning the laptop back on after suspending it. They typical long blurb about "If this is... More

6 comments