XLL+ Class Library (6.3)

CXlOper::IsBool() Example

CopyC++
//{{XLP_SRC(OperIsBoolExample) 
    // NOTE - the FunctionWizard will add and remove mapping code here. 
    //    DO NOT EDIT what you see in these blocks of generated code!
IMPLEMENT_XLLFN3(OperIsBoolExample, OperIsBoolExample_4, OperIsBoolExample_12, 
    "RP", "UQ", L"OperIsBoolExample", 0, L"Arg1", 0, L"Example", 0, L"Demonstr"
    L"ates COper::IsBool()", 0, L"Argument 1\0", 0, 0, L"{OperIsBoolExample,,,"
    L"Demonstrates COper::IsBool(),Example,1,128,U,{{0,{Arg1,Value,0,,Argument"
    L" 1,,,,}}},{},3,,0,0}", 1)
CXlOper* OperIsBoolExample_Impl(CXlOper&, const CXlOper*);

extern "C" __declspec(dllexport)
LPXLOPER12 OperIsBoolExample_12(LPXLOPER12 Arg1)
{
    XLL_FIX_STATE;
    CXlOper xloResult, Arg1__port(Arg1);
    try {
        CXlStructuredExceptionHandler _seh_;
        xloResult.HandleResult(OperIsBoolExample_Impl(xloResult, &Arg1__port));
    }
    catch(const CXlRuntimeException& ex) {
        CXllApp::Instance()->DisplayException(xloResult, ex);
    }
    return xloResult.Ret12();
}
extern "C" __declspec(dllexport)
LPXLOPER4 OperIsBoolExample_4(LPXLOPER4 Arg1)
{
    XLL_FIX_STATE;
    CXlOper xloResult, Arg1__port(Arg1);
    try {
        CXlStructuredExceptionHandler _seh_;
        xloResult.HandleResult(OperIsBoolExample_Impl(xloResult, &Arg1__port));
    }
    catch(const CXlRuntimeException& ex) {
        CXllApp::Instance()->DisplayException(xloResult, ex);
    }
    return xloResult.Ret4();
}

CXlOper* OperIsBoolExample_Impl(CXlOper& xloResult, const CXlOper* Arg1)
{
    // End of generated code 
//}}XLP_SRC

    xloResult = Arg1->IsBool();
    return xloResult.Ret();
}

Uses

CXlOper::IsBool