Creating an IText Object from char or IString Data

IText provides constructors that initialize IText objects from null-terminated char arrays and from IString objects. The text is transcoded from char data into Unicode data. The framework assumes that the char data is encoded using the default encoding system for the current host.

To create an IText from char* or IString data, simply pass the char data to the IText constructor:

char* string = "Hello World!";

IText unicodeString(string);