This function frees a string allocated previously by SysAllocString, SysAllocStringByteLen, SysReAllocString, SysAllocStringLen, or SysReAllocStringLen.
At a Glance
Header file: | Oleauto.h |
Windows CE versions: | 2.0 and later |
Syntax
HRESULT SysFreeString(BSTR bstr);
Parameters
bstr
Unicode string that was allocated previously, or NULL. If NULL, the function simply returns.
Return Values
None.
Remarks
Passing into this function any invalid and, under some circumstances, NULL pointers will result in unexpected termination of the application.
Example
CStatBar::~CStatBar()
{
SysFreeString(m_BSTRMsg);
}