How to print out the contents of a PBYTE?
问题 I understand PBYTE is unsigned char* from Windows Data Types. I want to be able to print all the contents, either using printf() or cout : PBYTE buffer; ULONG buffersize = NULL; serializeData(data, buffer, buffersize); //this function serializes "data" and stores the data in buffer and updates bufferSize).. Can you help me understand how to print this in C++? 回答1: If you want to print the memory address that buffer is pointing at, then you can do it like this: PBYTE buffer; ULONG buffersize =