Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

Home Library Index Site Map  Links Search About

STLEx An example Contact Manager application

An open source S.T.L. / Win32 Database Application written in C++ using the Borland Object Windows Library

Copyright Notice

This project is in progress. it is not a completed application.

This is a coding example. Not a commercial project.

The choices have been made to provide a coding example which can be easily viewed.

A more commercial (not to mention quick!) approach would have used App Expert to generate a dialog based main window, the controls would have been added in Resource Workshop and the Borland Visual Component Library used to connect to a Paradox Database.

I chose an STL set for a database because of it's speed in accessing elements and ease of inserting and erasing, which seemed ideal for a contact manager.

The approach of constructing the controls in the window constructor allows substantial flexibility once the initial coding has been done and there are limiting factors to using AppExpert and the V.C.L. which don't apply to a bare-bones database such as a set.

Once this program has been written it could provide the basis for either a more complete application or can be easily converted to a number of uses.

As this is an ongoing project and the files are subject to regular updating I am presenting them as-is without the hopefully user friendly format adopted elsewhere in the library.

File Listing

Documentation

Win32

  • stlex.cpp - main file includes OwlMain and a simple application class
  • stlex.h - definitions for controls and events
  • stlex.rc - resource file contains menu
  • tappwin.cpp - implementation for TAppWindow class
  • tappwin.h - interface for TAppWindow class
  • TFindFld.cpp - find record dialog window

STL Database and driver for testing

  • db.h - declarations for database
  • dbdrv.cpp - console based driver to test database
  • dbstruct.cpp - overloaded operators for record structure
  • dbstruct.h - record structure interface

Date conversion routines

  • stodate.cpp - StringToDate() - converts a string DD/MM/YYYY to a TDate obj
  • datetost.cpp - DateToString() - converts a TDate obj to a string DD/MM/YYYY
  • validate.cpp - bool IsValiDate() returns true if a valid date
    makes use of class TDate

Brief Synopsis

This is a simple single doc interface Win32 GUI app which uses an STL set to manipulate the data which is saved in binary files.

Most of the functionality is in the windows class TAppWindow (see tappwin.cpp).

 
copyright notice

Copyright Robert Mitchell. Last Revised : 18 October, 2000

e-mail me
1