I'm writing an application to read the master boot record of a hard disk, using WIN32. This has proved problematic, but there is one issue that has me a bit confused. I am using the SetWindowText function to write the MBR values to an EditBox control. However, as this function only accepts cstrings it treats the values in the array as ascii values and displays the corresponding character. What I want it to do is display the ascii values themselves in hex, rather like WinHex or another hex editor. I have tried casting, strcpy, itoa etc etc. with no luck.
Could anyone shed some light on this issue?