![]() |
![]() |
| CodeBase | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CodeBase for 'C++' ProgrammersCodeBase includes an incredibly flexible API for C++ programmers that provides all the database functionality you could ever need. Not only is a complete set of high-level function calls provided, but the low-level API is exposed as well. With these low-level functions you can gain extra speed by extracting only the exact functionality you need from the library--no extra overhead. Plus you can use the low-level functions (like or linked list and file functions) for general programming tasks, saving you hours of programming, and helping keep your .exes as small as possible by reducing redundant functionality in your code. Performance & FlexibilityOne of the main reasons developers tell us they use CodeBase is that the built-in database support that comes with their compiler just isn't flexible enough, isn't fast enough and is too big for them to use effectively in their applications. So why not try CodeBase, an engine that's flexible, fast and compact? You also get the complete source code for the CodeBase engine, written entirely in C and C++. This gives you the flexibility to make any custom changes you require, and to implement bug fixes (a rarity!) immediately, by simply applying a fix from the CodeBase tech department and recompiling the library. No other product offers you this type of flexibility. Platform & Compiler SupportCodeBase comes in four basic versions. The standard version is for Intel processors running on PCs. This version supports Windows 95, NT, 3.1 and DOS. The standard version includes full support for 16 and 32-bit programming using Microsoft and Borland compilers. Compiler versions supported include MS Visual C++ 1.5, 2.x, 4.x and Borland 4.5 and 5.0 The OS/2 version includes the standard version, plus support for the OS/2 operating system, and the IBM Visual Age compiler. Two Unix versions are available, one for Intel-based systems, and one for non-Intel systems. Our Intel-based version includes the standard version, plus support for SCO and other Intel-based versions of UNIX. Our non-Intel version includes the standard version plus support for Sun, Solaris, HPUX and other non-Intel versions of UNIX. CodeBase APIThe CodeBase API is simple to learn and use. If you have an xBase programming background, you'll appreciate the familiarity of the CodeBase API, which uses an xBase-like naming convention. Even if you don't, you'll appreciate the API's straightforward naming convention. Here's a small example that show's you how easy it is to use CodeBase with C++: CodeBase 6: C++ Example
// List the MAILING.DBF data file ordered alphabetically by last name.
#include "d4all.hpp"
void main(void) {
Code4 codeBase; // Initialize CodeBase++
Data4 mailing(codeBase, "MAILING"); // Open MAILING.DBF
Tag4 lastName(mailing, "LAST"); // Define tag object
mailing.select(lastName); // Select last name ordering
mailing.top(); // Go to top of mailing file
while(! mailing.eof()) {
cout << "\n" << mailing.recNo() << " "; // Display record number
// For each field in the mailing file.
for (int j = 1; j <= mailing.numFields(); j++) {
Field4 field(mailing, j);
cout << field.str() << " "; // Display each field’s contents
}
mailing.skip(); // Skip to next record
}
mailing.close();
}
CodeBase 6 Function ListHere are just a few of the 300 fully documented CodeBase C++ Methods: Data File Methods |
| append | eof | lockFile | reccount | top | blank | field | lockGroup | recno | unlockAll |
| bottom | flush | numFields | record | unlockFile |
| close | go | open | reindex | unlockIndex |
| create | index | pack | seek | unlockRecords |
| data | lock | position | skip | write |
| delete | lockAppend | recall | tagSelect | zap |
| assign | changed | lower | number | trim |
| assignDouble | decimals | maximum | ptr | true |
| assignField | len | name | str | type |
| assignLong | lockCheck | ncpy | substr | upper |
| close | data | init | open | tag |
| create | fileName | isValid | reindex | tagAdd |
| bottom | errorAction | lockAddquerySet | skip | sortSet |
| changed | init | master | skipEnable | top |
| connect | logFileName | logOpenOff | tranRollback | tranStart |
| logCreate | logOpen | tranCommit | tranStart | tranStatus |
If you’re developing database applications in C++ that require high-performance, xBase compatibility, portability or royalty-free distribution, then CodeBase is the choice for you.
Return to the CodeBase Main Page
CodeBase Features
CodeBase & C
CodeBase & Visual Basic
CodeBase & Delphi
CodeBase & Java
Visual Report Designer
Data-aware Controls
CodeBase User List
Royalty-Free source code is included. Does
not work with Visual FoxPro Databases. All CodeBase versions
include the Windows/DOS version.
Upgrades for previous versions are available.
| ©Copyright 1999
HALLoGRAM Publishing, Aurora CO. All Rights Reserved. All products mentioned in this site are trademarks of their respective owners. dmcakegrim |