BIDSEG.ZIP

Set word wrap on to read this in NotePad.

Contents freely dedicated for public use, as the example is of
no practical use whatsoever (and anything useful has already
been copied from somewhere else).

This example demonstrates a simple method of using BIDS arrays to do the most common requirement, storing structured data in a program. It is intended for beginner OWL programmers or at least beginner BIDS programmers. It does not use any complicated C++ tricks. There may be better ways to do things, this is meant to be an easy way.

It does not show all the possibilities of BIDS, but does show how to declare a class that can be used in a sorted array, and also accesses the class.

Having got this simple building block, it is then easy to move onto the other classes. I wrote this example as I had a lot of grief getting started.

Operator definitions are not beginners stuff (though easy once understood).

Also templates do cause whacky linking errors. There is a "fix" shown for arrays.h. The other silly that causes problems is that if you have a max macro defined, it trips the templates system up.



Instructions.

Install this example in a directory directly below your Borlandc directory. If not, you need to change all the project file libraries to get the right paths.

Build the project. Run BIDS.EXE to see what happens, its self explanatory, if not very exciting.

Lots of comments (some helpful) in the code. Have a good poke around. Note the project settings.  It might be useful to change them to see what errors you can create.

The project uses SYM files. If short of disk, you may wish to uncheck the project option. With the untidy headers, BIDS.SYM gets very large indeed.

Copy chunks into your own applications.


Any suggestions appreciated. The spirit of this example is to be as simple as possible, but if
you have any suggestions of starter techniques to put into the example let me know.

I haven't done a make file. Make files are beyond my comprehension. If anyone feels these are useful and would care to send me a working one, I'll stick it in.

Ian Spencer
Honor Oak Systems
Walsall
Sunny England.

@CompuServe 100111,421