I'm not good in C++
I have a code C++, and I want to convert from std::string to BYTE
The original code is
BYTE APDU_Cmd1[] = { 0xA0, 0xA4, 0x00, 0x00, 0x02, 0x3F, 0x00 };
lReturn = SCardTransmit(hCardHandle, &pioSendPci, APDU_Cmd1, sizeof(APDU_Cmd1), NULL, pbRecv, &dwRecv);
I want to change it to be like this
std::string APDU_Cmd1="A0A40000023F00";
how to convert string APDU_Cmd1 to BYTE APDU_Cmd1[] ?
Thanks in advance .