比较两个CComBSTR的正确方法是什么?我试着用
bool operator ==( const CComBSTR& bstrSrc ) const throw( );
然而,即使两个ComBSTR是相同的,它总是返回false.它无法正常工作.
我是否必须首先将CComBSTR转换为ANSI字符串,然后使用strcmp?
谢谢!
-公元前
c++ com atl
atl ×1
c++ ×1
com ×1