string str="ABCD";
int len=str.length();
int lenbf=MultiByteToWideChar(CP_ACP,0,str.c_str(),len,0,0);
wchar_t* buffer=new wchar_t [lenbf];
MultiByteToWideChar(CP_ACP,0,str.c_str(),len,buffer,sizeof(wchar_t)*lenbf);
buffer[len]=0;
则buffer即为所取。