XLL+ Class Library (6.3)

::XlWriteScalarEx

Transform a single value of extended type into a CXlOper

template< class T, class XLT >
void XlWriteScalarEx(
   const T& value,
   CXlOper& xlo,
   const CXlUserConverterBase<T, XLT>& outerConverter
);

Parameters

value

A reference to an input variable containing an extended type value.

xlo

A reference to a CXlOper which will be set to value, if the conversion is successful.

outerConverter

An instance of the extended type's converter class. See CXlUserConverterBase for details.

If the converter class does not implement ConvertToExcel() then this method will fail, and an exception of type CXlConversionException will be thrown.

Remarks

If the function fails for any reason, an exception of type CXlConversionException is thrown. This will be caught by the outer wrapper function, and converted into an appropriate form to be returned to Excel.

Requirements

Header: xlpconvert.h

See Also

Global conversion functions