XLL+ Class Library

COper::GetCount() Example

//{{XLP_SRC(OperGetCountExample)
    // NOTE - the FunctionWizard will add and remove mapping code here.
    //    DO NOT EDIT what you see in these blocks of generated code!
IMPLEMENT_XLLFN2(OperGetCountExample, "RP", "OperGetCountExample"
    , "Arg1", "Example", "Demonstrates COper::GetCount()", 
    "Argument 1\000", "\0", 1)

extern "C" __declspec( dllexport )
LPXLOPER OperGetCountExample(const COper* lpopArg1)
{
    CXlOper xloResult;
//}}XLP_SRC

    // Note: there is no long integer type for an XLOPER, 
    //       so we convert the count to a double.
    xloResult = (double)lpopArg1->GetCount();
    return xloResult.Ret();
}

Uses

COper::GetCount