ya i did VV using Multibytetowidechar function...
as given below
m_val1 is the textbox variable of type cstring
PWSTR wstr;
char *aa;
int count = 0;
aa = (char *)(LPCTSTR)(LPCSTR)M_Val1;
count = MultiByteToWideChar (CP_ACP,0,aa,strlen(aa),NULL,0);
if ( count > 0 )
{
wstr = SysAllocStringLen(0,count);
count = MultiByteToWideChar (CP_ACP, 0, aa, strlen(aa),wstr,count);
}
but is there any simpler way like which u gave for the above...
|