Howdy~ maybe you can try it ^.^ ////////////////////////////////////////////// CString a(“12 34”); BYTE x[2];
x[0] = strtol(a.Left(2),NULL,16); x[1] = strtol(a.Right(2),NULL,16); /////////////////////////////////////////////
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Howdy~
maybe you can try it ^.^
//////////////////////////////////////////////
CString a(“12 34”);
BYTE x[2];
x[0] = strtol(a.Left(2),NULL,16);
x[1] = strtol(a.Right(2),NULL,16);
/////////////////////////////////////////////