CHString::SetAt method (chstring.h)
[The CHString class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]
The SetAt method overwrites one character specified by an index number. If the index exceeds the bounds of the existing string, SetAt does not enlarge the string.
Syntax
void throw(CHeap_Exception) SetAt(
int nIndex,
WCHAR ch
);
Parameters
nIndex
Zero-based index of the character in the CHString string.
Note The nIndex parameter must be greater than or equal to zero (0), and less than the value returned by GetLength. The debug version of the CHString library validates the bounds of nIndex; the release version does not.
ch
The character to insert.
Return value
This method does not return a value.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | chstring.h (include FwCommon.h) |
Library | FrameDyn.lib |
DLL | FrameDynOS.dll; FrameDyn.dll |