Home Home

CloseDatabase

CloseDatabase closes an open database. This moethod does not need to be called unless you wish to release the database without calling the destructor.
unsigned int CloseDatabase (
);

Parameters

void

Return Values

If the method succeeds, the return value is zero else see error codes for more details.

Remarks

Example Use

CODBPP database;
if(database.OpenDatabase(_T"YourDatabase") == NO_ERROR){
	...
}
if(error && database.GetErrorMessage(&message) == NO_ERROR)
   MessageBox(message);
database.CloseDatabase();

Also See

CreateDatabase, OpenDatabase

Copyright © 2003-2008, Ekky Software Pty. Ltd.