---
name: "VarCyCmp"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/VarCyCmp"
---

# VarCyCmp(3w)

## NAME

**VarCyCmp** (OLEAUT32.311)

## SYNOPSIS

HRESULT VarCyCmp\
  (\
   const CY *cyLeft*,\
   const CY *cyRight*\
  )

## DESCRIPTION

Compare two **VT\_CY** values.

## PARAMS

*cyLeft* **\[In\]**  Source.

*cyRight* **\[In\]**  Value to compare.

## RETURNS

**Success:** **VARCMP\_LT**, **VARCMP\_EQ** or **VARCMP\_GT** indicating that the value to compare is less, equal or greater than source respectively.

**Failure:** **DISP\_E\_OVERFLOW**, if overflow occurs during the comparison

## IMPLEMENTATION

Declared in **"oleauto.h"**.

Implemented in **"dlls/oleaut32/vartype.c"**.

Debug channel **"variant"**.
