XLL+ Class Library

COper::GetDims() Example

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

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

    USHORT usRows, usColumns;
    lpopArg1->GetDims(usRows, usColumns);
    xloResult.Format("%d rows by %d columns", usRows, usColumns);
    return xloResult.Ret();
}

Uses

COper::GetDims | CXlOper::Format