Question: how to convert wchar_t to char?
Answer: You can use PtrToStringChars in Vcclr. h to convert String to native wchar_t * or char * . This always returns a wide Unicode string pointer because CLR strings are internally Unicode. You can then convert from wide as shown in the following example.