I have a situation where I need to compare a char* with a WideString. How do I convert the WideString to a char* in C++?
char*
WideString
You can use the wcstombs function.
size_t wcstombs( char * mbstr, const wchar_t * wcstr, size_t max );