This member function opens the database and, optionally, specifies which sort order to use.
BOOL Open( CEOID CeOID, const CCeDBProp* pKeyProp = NULL, const CWnd* pWndNotify = NULL );
BOOL Open( LPCWSTR szName, const CCeDBProp* pKeyProp = NULL, const CWnd* pWndNotify = NULL );
Header file: | Wcedb.h |
Platforms: | |
Versions: | 2.0 and later |
TRUE if the operation succeeded. FALSE if the database could not be opened. Call ::GetLastError to determine why the operation failed.
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 Overview, CCeDBDatabase Member Functions, Windows CE Database Classes, CCeDBDatabase::Close, ::GetLastError