Question: how to convert wchar to char?
Answer: An easy way is : wstring your_wchar_in_ws(<your wchar>); string your_wchar_in_str(your_wchar_in_ws. begin(), your_wchar_in_ws. end()); char* your_wchar_in_char = your_wchar_in_str.