This method opens the database and, optionally, specifies which sort order to use.
Header file: | Wcedb.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 2.0 and later |
BOOL Open( CEOID CeOID, const CCeDBProp* pKeyProp = NULL,
const CWnd* pWndNotify = NULL );
BOOL Open( LPCWSTR szName, const CCeDBProp* pKeyProp = NULL,
const CWnd* pWndNotify = NULL );
TRUE indicates that the operation succeeded. FALSE indicates that the database could not be opened. To get extended error information, call GetLastError.
All seek operations performed on the database will use the sort order specified in pKeyProp. If you want to select a different sort order, you must reopen the database. If no sort order is specified, the order in which the records are sorted is undefined.
CCeDBDatabase::Close, GetLastError