This method creates a Windows CE database, but does not open it.
Header file: | Wcedb.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 2.0 and later |
CEOID Create( LPCWSTR szName, DWORD dwIdent = 0, int nNumSortProps = 0, const CCeDBProp* pSortProps = NULL );
CCeDBProp::CCeDBProp(CCeDBProp::enType nType,WORD wIdent, WORD wSortFlags)
The object identifier of the new database, or NULL if there is an error. To get extended error information, call GetLastError.
If the specified database already exists, it is not recreated, and the method returns FALSE.
The pSortProps parameter cannot contain more than CEDB_MAXSORTORDER sort properties. In MFC for Windows CE 2.10, CEDB_MAXSORTORDER is defined as 4.
Two sort properties in the same database cannot have the same application-defined identifier.
The sort property passed in the pKeyProp parameter of the Open method must be one of the properties that was previously specified in a call to either Create or SetSortProps.
CCeDBDatabase::CCeDBDatabase, CCeDBDatabase::SetSortProps, CCeDBDatabase::Open, CCeDBProp::CCeDBProp, GetLastError