This function opens an existing database file. Opening a file initiates the following actions:
See comments in "DB_Create" on page 11-422 for the FieldCallBack and ROMCallBack functions.
Syntax: int DB_Open(DBBLOCK *dblk, char *filename, char filetype,
int (far *FieldCallBack)(), char *password, int ROMCount,
int (far *ROMCallBack)());
Returns: DB_OK Database was opened.DB_OPEN File cannot be opened. (File does not exist, bad name, no DOS handles, etc..)
DB_MEMORY Not enough memory to open the file.
DB_WRITE Bad media, not enough disk space.
DB_PROTECTED File is on protected media.
DB_READ Cannot read from file.
DB_SEEK Cannot seek within file, file may be corrupt.
DB_SIGNATURE File is not a database file.
DB_FILETYPE Type of file is different than expected.
DB_MAYBEINUSE See above description of this error. A call to DB_Reset is required to open the file.
DB_PASSWORDFAILED The password is invalid.
DB_RELEASE The database engine in the machine cannot open a file created by a later release database. The release only changes if the low-level file format (i.e., non-application specific) differs. The current release is 1.02 (0x0102).
May Move Memory: Yes