The template class for user-defined type converters.
class CXlUserConverterBase<ElemType, XlNativeType> |
To add a new data type to the XLL+ framework, a converter class must be written and registered. All converter classes are derived from CXlUserConverterBase.
To implement a class derived from CXlUserConverterBase, the developer must provide:
The developer may also choose to implement ConvertToExcel() so that extended types can be returned to Excel.
See Creating an extended type in the User Guide for more information.
The table below lists the types available for use as
the XlNativeType template argument, along with the type
required for the excelType
attribute of the
<ScalarType>
element in the extension file.
excelType attribute | XlNativeType |
---|---|
Boolean | bool BOOL |
Double | double |
String | CString CStringA CStringW std::tstring std::string std::wstring |
Short | short int |
UShort | unsigned short int |
Int | long |
Header: xlpconvert.h
CXlUserConverterBase<ElemType, XlNativeType> Methods | xlpconvert.h | Extended types