The WToMChar method

This method converts the wide character from to its multibyte representation and stores it in consecutive bytes starting at the location pointed to by to.

int WToMChar(char *to, const ITWChar from) const

This method returns the number of bytes it writes to to.

If there is an error, this method returns -1. Call ITLocale::GetError() to retrieve a specific error message.