CComBSTR::operator ==
CComBSTR 的字符串比较。 CComBSTR的文本上进行比较在用户的默认区域设置中。
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。
备注
最终比较运算符到 NULL比较其所在的字符串。
要求
Header: atlbase.h