How can I convert a BYTE array in a CString in MFC?
4 Answers
BYTE packet[IN_PACKET_SIZE];
CString Text;
Text.Format((LPCWSTR)L"%d hours \t%d minutes \t%d seconds \t%d °C", packet[0], packet[1], packet[2], packet[3]);
2 Comments
Robert
Please also add some explanation to your answer.
Nick
Code-only answers are discouraged. Please click on edit and add some words summarising how your code addresses the question, or perhaps explain how your answer differs from the previous answer/answers. From Review