CopyC++
IMPLEMENT_XLLFN3(OperToStringExample, OperToStringExample_4,
OperToStringExample_12, "RPA", "UQA", L"OperToStringExample", 0, L"Arg1,St"
L"rict", 0, L"Example", 0, L"Demonstrates COper::ToString()", 0, L"Argumen"
L"t 1\0If True, then do not attempt to convert\0", 0, 0, L"{OperToStringEx"
L"ample,,,Demonstrates COper::ToString(),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* OperToStringExample_Impl(CXlOper&, const CXlOper*, BOOL);
extern "C" __declspec(dllexport)
LPXLOPER12 OperToStringExample_12(LPXLOPER12 Arg1, BOOL Strict)
{
XLL_FIX_STATE;
CXlOper xloResult, Arg1__port(Arg1);
try {
CXlStructuredExceptionHandler _seh_;
xloResult.HandleResult(OperToStringExample_Impl(xloResult, &Arg1__port,
Strict));
}
catch(const CXlRuntimeException& ex) {
CXllApp::Instance()->DisplayException(xloResult, ex);
}
return xloResult.Ret12();
}
extern "C" __declspec(dllexport)
LPXLOPER4 OperToStringExample_4(LPXLOPER4 Arg1, BOOL Strict)
{
XLL_FIX_STATE;
CXlOper xloResult, Arg1__port(Arg1);
try {
CXlStructuredExceptionHandler _seh_;
xloResult.HandleResult(OperToStringExample_Impl(xloResult, &Arg1__port,
Strict));
}
catch(const CXlRuntimeException& ex) {
CXllApp::Instance()->DisplayException(xloResult, ex);
}
return xloResult.Ret4();
}
CXlOper* OperToStringExample_Impl(CXlOper& xloResult, const CXlOper* Arg1, BOOL
Strict)
{
xloResult = Arg1->ToString(Strict);
return xloResult.Ret();
}
Uses
CXlOper::ToString