char*字符串转unicode下的CString

char *pPhoneNO = new char[12];
      memset(pPhoneNO, 0, 12);
      memcpy(pPhoneNO, p+4, 11);
      CString phoneNO = CA2W(pPhoneNO);//Unicode工程下的CString
      MessageBox(NULL,phoneNO,NULL,MB_OK);//正常显示

你可能感兴趣的:(char*字符串转unicode下的CString)