Share via


CComBSTR::operator !=

 

Returns the logical opposite of operator ==.

Syntax

      bool operator!=(
   const CComBSTR& bstrSrc 
) const throw( );
bool operator!=(
   LPCOLESTR pszSrc 
) const;
bool operator!=(
   LPCSTR pszSrc 
) const;
bool operator!=(
   int nNull 
) const throw( );

Parameters

  • bstrSrc
    [in] A CComBSTR object.

  • pszSrc
    [in] A zero-terminated string.

  • nNull
    [in] Must be NULL.

Return Value

Returns true if the item being compared is not equal to the CComBSTR object; otherwise, returns false.

Remarks

CComBSTRs are compared textually in the context of the user's default locale. The final comparison operator just compares the contained string against NULL.

Requirements

Header: atlbase.h

See Also

CComBSTR Class