CloseDatabase
CloseDatabase closes an open database. This method does not need to be called unless you wish to release the database without calling the destructor.unsigned __int64 CloseDatabase ( );
Parameters
void |
Return Values
If the method succeeds, the return value is zero else see error codes for more details.Remarks
- This will be triggered by the destructor and does not need to be called explicitly.
Example Use
- C++
#include "ODBPP.h" int wmain(int argc, wchar_t* argv[]) { unsigned __int64 error; const char16_t *message; CODBPP database; if(database.OpenDatabase(u"YourDatabase") == NO_ERROR){ ... } if(error && database.GetErrorMessage(&message) == NO_ERROR) MessageBox(message); database.CloseDatabase(); return NO_ERROR; }
Also See
CreateDatabase, OpenDatabaseListen All
Comments (0)