★★★如何将CString strInfo=“0x30313233343536373839” 转换成二进制串到char * pMsgInfo。
比如有 CString strInfo="06050415811581024A";
char * pMsgInfo=new char[nBufSize];
memset(pMsgInfo,0,nBufSize);
如何达到如下效果:如何用函数实现?
pMsgInfo[0]=0x06;
pMsgInfo[1]=0x05;
pMsgInfo[2]=0x04;
pMsgInfo[3]=0x15;
pMsgInfo[4]=0x83;
pMsgInfo[5]=0x15;
pMsgInfo[6]=0x83;
pMsgInfo[7]=0x02;
pMsgInfo[8]=0x4A;