bool operator !( );
Remarks
Returns true if the m_str member is NULL; otherwise, false.
Example
STDMETHODIMP CPolyCtl::BSTRToUpper(BSTR bstrConv)
{
// assign bstrConv to m_str member of CComBSTR
CComBSTR bstrTemp;
bstrTemp.Attach(bstrConv);
// make sure BSTR is not NULL string
if(!bstrTemp)
{
// Make string uppercase
bstrTemp.ToUpper();
// set m_str to NULL, so the BSTR is not freed
bstrTemp.Detach();
return S_OK;
}
return E_POINTER;
}