CCeDBProp::SetString
This member function sets the value of a string property (CCeDBProp::Type_String).
Syntax
void SetString( LPWSTR lpwstr, UINT nMode = Copy );
At a Glance
Header file: |
Wcedb.h |
Platforms: |
|
Versions: |
2.0 and later |
Parameters
-
lpwstr
-
A pointer to a string.
-
nMode
-
A flag that specifies whether to allocate memory to store the passed in string. This parameter can have one of the following values.
-
CCeDBProp::Copy
-
Creates a copy of the string pointed to by the lpwstr parameter. This memory is released when the CCeDBProp object is destroyed.
-
CCeDBProp::NoCopy
-
The property maintains a pointer to the existing string, passed in the lpwstr parameter, but doesn't own it. The memory is not released when the CCeDBProp object is destroyed.
Return Values
This member function has no return value.
Remarks
You can only call SetString on a property of the type CeDBProp::Type_String.
See Also
CCeDBProp Overview, CCeDBProp Member Functions, Windows CE Database Classes, CCeDBProp::GetString