Display Int as Hex in an Edit box

This is a discussion on Display Int as Hex in an Edit box within the C++ Programming forums, part of the General Programming Boards category; This screen shot shows both the code and actual application of my program.
What I am trying to do is ...

Display Int as Hex in an Edit box

This screen shot shows both the code and actual application of my program.
What I am trying to do is choose a register type, enter a range, and have the corresponding address displayed in hex, but as shown, the address is displayed in decimal.
What is the best way to display in hex?
The code to the upper right of the dialog box - AssembleMessage() is what I am using to write to the Address Edit box.
Any comments appreciated.
Thank you.

Ah yes, typo >_<
At first, I was thinking of CString, but obviously this isn't MFC...
There there are string streams... can they do it? I don't know. I don't mess around with them very much. In fact, I haven't used them even once.