#include "stdafx.h"
#include "atlbase.h" 
#include   <stdio.h>   
int   main(int argc, char* argv[]) 
{
OLECHAR temp[5];   
temp[0]='A';   
temp[1]=0;   
temp[2]='D'; 
temp[3]='E';
temp[4]='F'; BSTR bstrText = SysAllocStringLen(temp,   5); int a = SysStringLen(bstrText)+1; char *ansistr = new char[a]; memset(ansistr,0,a); ::WideCharToMultiByte(CP_ACP, 
0, 
bstrText, 
  -1, 
ansistr, 
a, 
NULL, 
NULL); for(int i=0;i<a;i++)
printf("%.2lx ",ansistr[i]); printf("\n"); SysFreeString(bstrText);  return 0;  
}显示结果是
41 00 00 00 00 00
而不是
41 00 44 45 46 00
要怎么做才能得到后面的结果?