Edit

Share via


operator!= function (chstring.h)

[The CHString class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]

The CHString comparison operators compare two strings. These operators are a convenient substitute for the case-sensitive Compare method.

Syntax

BOOL operator!=(
  const CHString & s1,
  const CHString & s2
);

Parameters

s1

Reference to the CHString to the left of the operator for this comparison.

s2

Reference to the CHString to the right of the operator for this comparison.

Remarks

Examples

The following code example shows the use of a CHString Comparison Operator:

CHString s1( L"abc" );
CHString s2( L"abd" );

assert( s1 != s2 ); 

Requirements

Requirement Value
Header chstring.h

See also

CHString