This member function creates a Windows CE database, but does not open it.
CEOID Create( LPCWSTR szName, DWORD dwIdent = 0, int nNumSortProps = 0, const CCeDBProp* pSortProps = NULL );
Header file: | Wcedb.h |
Platforms: | |
Versions: | 2.0 and later |
The object identifier of the new database, or NULL if there is an error. Call ::GetLastError to determine why the operation failed.
If the specified database already exists, it is not recreated, and the function returns FALSE.
The pSortProps parameter cannot contain more than CEDB_MAXSORTORDER sort properties. In Windows CE 2.0, this number is four.
You cannot have two sort properties in the same database with the same application-defined identifier.
The sort property you pass in the pKeyProp parameter of the Open member function must be one of the properties you previously specified in a call to either Create or SetSortProps.
CCeDBDatabase Overview, CCeDBDatabase Member Functions, Windows CE Database Classes, CCeDBDatabase::CCeDBDatabase, CCeDBDatabase::SetSortProps, CCeDBDatabase::Open, CCeDBProp::CCeDBProp, ::GetLastError