GetDatabaseMembers
GetDatabaseMembers returns all the tables currently within the control file.unsigned __int64 GetDatabaseMembers ( CODBPP::DatabaseMember *members, unsigned int *count );
Parameters
members | pointer to a valid memory block. |
count | if members equal NULL then count equals the size of the reqiured memory block in bytes. Else count equals the amount of members. |
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; CODBPP::DatabaseMembers *members; unsigned int count; if((error = database.OpenDatabase(u"YourDatabase")) == NO_ERROR && (error = database.BeginTransaction()) == NO_ERROR && (error = database.GetDatabaseMembers(NULL,&count)) == NO_ERROR){ members = (CODBPP::DatabaseMembers*) new BYTE[count]; if((error = database.GetDatabaseMembers(members,&count)) == NO_ERROR){ for(int i = 0; i < count; i++) MessageBox(members[i].tableName); } delete [] (LPBYTE)members; } if(error && database.GetErrorMessage(&message) == NO_ERROR) MessageBox(message); database.CloseDatabase(); return NO_ERROR; }
Also See
CreateTableListen All
Comments (0)