XLL+ Class Library

COper::GetWidth() Example

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

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

    xloResult.FromInt(lpopArg1->GetWidth());
    return xloResult.Ret();
}

Uses

COper::GetWidth | CXlOper::FromInt