Transform a value received from Excel to a CLR form
System::String^ toClr( const CXlStringArg& arg ); System::String^ toClr( const std::string& str ); System::String^ toClr( const std::wstring& wstr ); System::String^ toClr( const CString& cstr ); System::String^ toClr( const CStringA& cstra ); System::String^ toClr( const CStringW& cstrw ); System::String^ toClr( const char* psz ); System::String^ toClr( const wchar_t* wpsz ); array<System::String^>^ toClr( const std::vector<CString>& vector ); array<System::String^, 2>^ toClr( const ple::mtx_ptrs<CString>& matrix ); |
A string argument received from Excel.
An STL string.
An STL wide string.
A string object, whose character type depends on the value of the
pre-processor definition _UNICODE
.
A string object.
A unicode string object.
A non-zero, null-terminated character array.
A non-zero, null-terminated wide character array.
A vector of string objects, whose character type depends on the value of the
pre-processor definition _UNICODE
.
A matrix of string objects, whose character type depends on the value of the
pre-processor definition _UNICODE
.
A CLR object, that may be passed directly to a .NET method, using C++/CLI.
The various forms of this function transform C++ string types or arrays to equivalent .NET string or array.
The template function toClr<T> handles the majority of array conversions, where the C++ element type is the same as the CLR element type.
Header: xlpclrconvert.h