Dev Reference For The Upcoming Version 0.400
Welcome To CIDCorp
Home of the CIDLib Class Libraries


Thanks

Hello. Thanks for checking out the CIDLib Class Libraries. CIDLib is a system of C++ classes and frameworks which encapsulate OS/2 Warp. It provides a fully object oriented environment which greatly eases the pain and/or paranoia of OS/2 development while attempting to provide access to as much of OS/2's power as possible. CIDLib supports the IBM Visual Age C++ Version 3.0 development system. It requires HPFS and at least a Pentium level machine. See Required Hardware and Software below.

The current version, 0.400, is the fourth beta release of the system. It should be treated as such, so don't do any commercial development with CIDLib at this time, or any personal projects upon which your life depends. At this time, I am merely trying to get early feedback from users who are interested in such things. For more information on the limitations and known problems with this beta release, see the Beta Issues appendix.

Getting Support

CIDLib is supported electronically only at this time. There are a couple of different avenues you can reach me through. I will try to respond in a timely fashion to any requests for information or help.
CIS Via The OS2 Shareware Forum
You can reach me via the CIS shareware forum from which you may have downloaded this software. Just type 'GO OS2SHARE' at the CIS prompt or configure your favorite offline reader to monitor this forum. It is Library 1 ("OS/2 Shareware") of the OS2BVEN forum.

By becoming an offical OS/2 Shareware author I am committed to monitoring this forum on a very regular basis so that I can answer your questions. If you need to speak to me personally, then you can mail me at 72170,1614. I may not be able to respond immediately, but I will get back to you as soon as possible. You can also generally give me a yell in the OS2DF1 forums where I try to spend quality time helping people and generally hanging out with other OS/2 developers. Please though don't clog up this forum with traffic that should be done on OS2SHARE or via mail. But if you have a C++ or OS/2 question that just happens to come up while using CIDLib, that might be an appropriate forum.

On The Internet
I also support, and make available, CIDLib via the internet. You can reach me on the net at:

droddey@ng.netgate.net

You can also check out the CIDCorp home page for updates on new releases and other up to date information. The URL is:

http:://ng.netgate.net/~droddey/

Required Hardware and Software

CIDLib has relatively high requirements in the hardware area, and perhaps in the software area according to how you use them. Its not that I'm trying to be bourgeois or elitist; but, I feel that those of us who can afford to take the longer view should do so and provide a forward leaning pull on the industry as a whole. Therefore, CIDLib looks forward a year or so to when it would likely be becoming a full commercial product, and a little closer to the 'post scarcity' computing world where developers do not have to worry quite so much about performance that they significantly lessen the safety and symmetry of their architecture.

Of course this will tend to limit its usefulness in the short term, but I feel strongly that it maintain a more pure character than the usual commercial system for the same level of hardware. I get enough experience at work of the realities of commercial development. In the longer haul, this strategy will pay off with a product that reaches maturity on or a little ahead of the wave instead of two waves back. And, in purely practical terms, the uncompromising way is sometimes the easiest way. Being a single person, this very much helps me in getting it done.

Operating System Requirements

Merlin (in any of its various flavors) is required for development or to run applications developed with the CIDLib system. Only HPFS is supported, so you cannot use this system on a FAT partition. At this time, no Merlin patches have been installed on my development machine so none should be required.

Hardware Requirements

A Pentium level CPU or greater is required. Nice, substantial amounts of memory is recommended for any large scale C++ development, regardless of what any advertisments might say. I have 32 meg, and seem to be on the edge sometimes when I run the debugger on a large app just after a compile (because the compiler stays resident for a while.)

My current system is a Dual 200Mhz Pentium Pro machine, with PCI video and fast/wide SCSI, definitely a great machine for the scale of development I require for developing CIDLib itself (and also great for ray tracing work, which is very CPU intensive. But you could certainly live with much less machine than this as long as you have the memory. The target machines would certainly not have the same requirements, though CIDLib would still require HPFS and Pentium level machines because of the use of Pentium specific instructions and long file names.

Optional Hardware

It is very nice to 24 bit video hardware if the Ray Tracing and Fractal engines are to be used to greatest advantage. All of the CIDLib graphics system is oriented towards 24 bit graphics, however this is not a requirement since PM will translate (as much as possible) to the target video hardware. It is usually only noticable on heavy color applications such as ray tracing and image viewing.

For ray tracing and fractals 16/15 bit video looks pretty good though not as good as 24 bit by any means. 8 bit systems will not be very attractive. Ray traced scenes will tend to have bands of colors going across objects which should have smooth and subtle gradients of color. Just keep in mind that the data correctly represents the scene, your mechanism for viewing it is just very limited. CIDLib does not do any sort of hardware palette realization since this would be contrary to its no-compromise design.

Development Software Requirements

The CIDLib system is built using Visual Age C++Version 3.0 at this time. So you will need to have installed VAC++ first before attempting to use the CIDLib Class Libraries. It must be correctly installed and working and its various environmental variables set up (and all the latest patches installed.) Visual Age C++ now includes the Warp developer's toolkit, so that does not have to be separately installed. If you want to build CIDLib itself you will also need Borland's TASM for the assembly files, or modify the asm files to work with the assembler of your choice. This would likely not be a lot of work since the amount of asm is limited to only those places where it is a clear winner and easily replaced later with C++ code in case of a port.

I provide pre-assembled versions of them as Obj files in the AsmObjs subdirectory, so you can just copy these to the Result directory in order to avoid the need for the assembler (as long as the dates on the source files are not changed to be newer than the Objs I provide your of course.) If you touch those files, its going to try to rebuild the Objs, so you will have to touch the Obj files again to give them newer times or get TASM if you want to actually build them.

Also, if you compile CIDLib itself, you will have to make a couple small modifications to the OS/2 headers.I have added the correct const attributes to a couple of APIs I call so that I don't have to incorrectly cast them internally. These casts cause lots of informational messages, and my changes make them more correct. You will be able to find out which ones because you will get a pretty obvious error message when you compile. So, for example, when it complains about not being able to cast a const TPoint object to a PM PPOINTL (i.e. a non-const pointer), it means you need to change 'PPOINTL' to be 'const POINTL*' for that system API. Its only in small handful of APIs. Sorry about any inconvenience, and it won't happen if you are just using CIDLib, only if you are actually compiling CIDLib itself.

Other Miscellaneous Topics

Please read the Legal Mumbo-Jumbo section, even if you skip the other stuff. The architectural philosophy section will be very helpful for your understanding of where CIDLib is coming from.

CIDCorp
Dean Roddey
Internet: droddey@ng.netgate.net
CIS: 72170,1614