Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How convert a decimal data to hexadecimal ?

Status
Not open for further replies.

youssef

Programmer
Mar 13, 2001
96
BE
Hi,

I receive Data coming from the serialport.
I use mscomm32.ocx. It working with many help.
So the data coming from the VTR is in Hexadecimal but when
I write the data in a editbox, the result is in decimal format.

1/ How can I do for write the data in hexadecimal format in a editbox ?

2/ How can I convert a data coming from a editbox in hexadecimal to decimal ?

3/ I would like to send hexadecimal data coming from a editbox to the serialport without converting it ?

Thanks for answer

Best regards
 
I dont remember exactly, but to format the output string (using stringstreams) you can do:

YourOStringStream<<hex<<YourVariable; John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top