CComBSTR::operator !=

返回 运算符==逻辑相反。

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

参数

  • bstrSrc
    [in] 一个 CComBSTR 对象。

  • pszSrc
    [in]一个零结尾的字符串。

  • nNull
    [in]必须是 NULL

返回值

如果比较的项与 CComBSTR 对象,而不是相等的返回 true ;否则,返回 false

备注

CComBSTR的文本上进行比较在用户的默认区域设置中。 最终比较运算符到 NULL比较其所在的字符串。

要求

Header: atlbase.h

请参见

参考

CComBSTR 类