With version 6, XLL+ now fully supports the (16-bit) Unicode character set as well as the standard (8-bit) ANSI character set. Setting the compiler settings appropriately will cause the compiler to use the Unicode or the ANSI versions of functions and classes.
See the Application Wizard help for information on these settings.
Wherever possible, the XLL+ libraries and headers use portable string types, which will be of the preferred size depending on the build settings.
The table below lists the portable types used in the XLL+ run-time libraries and headers, along with their meaning under each type of build.
Portable type | Standard build | Unicode build |
---|---|---|
TCHAR | char | wchar_t |
std::tstring | std::string | std::wstring |
CString | CStringA | CStringW |
LPCTSTR | LPCSTR | LPCWSTR |
LPTSTR | LPSTR | LPWSTR |
_T("text") | "text" | L"text" |