CopyC++
IMPLEMENT_XLLFN3(OperToDoubleExample, OperToDoubleExample_4,
OperToDoubleExample_12, "RPA", "UQA", L"OperToDoubleExample", 0, L"Arg1,St"
L"rict", 0, L"Example", 0, L"Demonstrates COper::ToDouble()", 0, L"Argumen"
L"t 1\0If True, then do not attempt to convert\0", 0, 0, L"{OperToDoubleEx"
L"ample,,,Demonstrates COper::ToDouble(),Example,1,128,U,{{0,{Arg1,Value,0"
L",,Argument 1,,,,}},{0,{Strict,Boolean,0,,\"If True, then do not attempt "
L"to convert\",,,,}}},{},3,,0,0}", 1)
CXlOper* OperToDoubleExample_Impl(CXlOper&, const CXlOper*, BOOL);
extern "C" __declspec(dllexport)
LPXLOPER12 OperToDoubleExample_12(LPXLOPER12 Arg1, BOOL Strict)
{
XLL_FIX_STATE;
CXlOper xloResult, Arg1__port(Arg1);
try {
CXlStructuredExceptionHandler _seh_;
xloResult.HandleResult(OperToDoubleExample_Impl(xloResult, &Arg1__port,
Strict));
}
catch(const CXlRuntimeException& ex) {
CXllApp::Instance()->DisplayException(xloResult, ex);
}
return xloResult.Ret12();
}
extern "C" __declspec(dllexport)
LPXLOPER4 OperToDoubleExample_4(LPXLOPER4 Arg1, BOOL Strict)
{
XLL_FIX_STATE;
CXlOper xloResult, Arg1__port(Arg1);
try {
CXlStructuredExceptionHandler _seh_;
xloResult.HandleResult(OperToDoubleExample_Impl(xloResult, &Arg1__port,
Strict));
}
catch(const CXlRuntimeException& ex) {
CXllApp::Instance()->DisplayException(xloResult, ex);
}
return xloResult.Ret4();
}
CXlOper* OperToDoubleExample_Impl(CXlOper& xloResult, const CXlOper* Arg1, BOOL
Strict)
{
xloResult = Arg1->ToDouble(Strict);
return xloResult.Ret();
}
Uses
CXlOper::ToDouble