Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method compares the string with a specified string to determine if the two strings are equal or if one is lexicographically lesser or greater than the other.

Syntax

int compare(
  const wstring& 
_X
) const;
int compare(
  const wchar_t* 
_S
) const;

Parameters

_X

The wstringto be compared to this string.

_S

The C-style string to be compared to this string.

Return Value

This method returns:

  • A negative value if this string is lexicographically less than the parameter string.

  • A positive value if this string is lexicographically greater than the parameter string.

  • Zero if the two strings are lexicographically equal.

Requirements

Header av_upnp.h
Library Av_upnp.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also