Hi there!
I need to take differents types of data, like:
int n = 12;
short int n1 = 255;
unsigned char b = 4;
unsigned short w = 1600;
std::string str = "SR_protocol";
put all togheter in a CComSafeArray<BYTE>, and convert it to send in a COM object (OPC), like:
CComSafeArray<BYTE> saByteArray;
CComVariant varArrayWrapper(saByteArray);
VARIANT *vSendMSG = NULL;
varArrayWrapper.Detach(vSendMSG);
But I don't know how to do it.. help me please