Alamelu said:
I am take string input from int main arguments, how to convert those
strings
to wide character strings
There are several options.
You may want to use the ATL helper conversion classes, like CA2W:
const char * ansiString ...
CA2W wideString( ansiString );
And use wideString wherever a const wchar_t * is required.
Or CStringW class has a constructor to do the conversion:
CStringW wideString( ansiString );
Note that you can use these ATL classes from both pure Win32 C++ projects
and MFC projects.
HTH,
Giovanni