Mfc plastic type
# include & ltstdio.h & gt

Master ()

{

int buf[4];

char pStr[25]="0x00,0xff,0xff,0x 00 ";

for(int I = 0; I<4; i++)

{

char p[3]= " ";

strncpy(p & amp; pStr[i*5+2],2);

int t 1,T2;

if(p[0]& gt; ='a ')

{

t 1 = p[0]-87;

}

else if(p[0]& gt; = ' 0 ' & amp& ampp[0]& lt; ='9')

{

t 1 = p[0]-48;

}

if(p[ 1]>='a ')

{

T2 = p[ 1]-87;

}

else if(p[ 1]& gt; = ' 0 ' & amp& ampp[ 1]& lt; ='9')

{

T2 = p[ 1]-48;

}

buf[I]= t 1 * 16+T2;

}

}