I have a byte array that contains for example
byte mac[6] = {0x00, 0x8a, 0x0C, 0x98, 0x11, 0x15}.
When inserting it to a database using this statement
m_pWiFiRecords->Fields->Item[varColumnIndex]->Value = _variant_t((char*)(pRecord->bss_id));
It saves it as an empty array because the first element = 0x00 and when casting it as a byte array it saves it as -1.
Could you help me in figuring out the problem?