Export (0) Print
Expand All

CComBSTR::operator ==

Compares a CComBSTR with a string. CComBSTRs are compared textually in the context of the user's default locale.

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


[in] A CComBSTR object.


[in] A zero-terminated string.


[in] Must be NULL.

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

The final comparison operator just compares the contained string against NULL.

Header: atlbase.h

© 2015 Microsoft