SysFreeString

HRESULT SysFreeString( 
  BSTR  bstr  
);
 

Frees a string allocated previously by SysAllocString, SysAllocStringByteLen, SysReAllocString, SysAllocStringLen, or SysReAllocStringLen.

Parameter

bstr
A BSTR allocated previously, or Null. If Null, the function simply returns.

Return Value

None.

Example

CStatBar::~CStatBar()
{
    SysFreeString(m_bstrMsg);
}

QuickInfo

  Windows NT: Use version 3.1 and later.
  Windows: Use Windows 95 and later.
  Header: Declared in oleauto.h.
  Import Library: Link with oleaut32.lib.