OpenDatabase

OpenDatabase enables the connection to an already created database.
unsigned __int64 OpenDatabase (
   const char16_t *databaseName
);

Parameters

databaseName'\0' terminating string that contains the path for the database control file.

Return Values

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

Remarks

Example Use
  • C++
#include "ODBPP.h"

int wmain(int argc, wchar_t* argv[])
{
   unsigned __int64 error;
   const char16_t *message;
   CODBPP database;
   if((error = database.OpenDatabase(u"YourDatabase")) == NO_ERROR){
      ...
   }
   if(error && database.GetErrorMessage(&message) == NO_ERROR)
      MessageBox(message);
   database.CloseDatabase();
   return NO_ERROR;
}

Also See

CloseDatabase, CreateDatabase
Listen All
Comments (0)
Characters left: 2500
 
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript