Decimal or String Covert to Hex Value

M

Michael Chong

Any idea that I can convert a value of type Decimal or String into Hex value
in MFC VC++.NET?

I know there is a function hex(std::ios_base&), but I don't know how to
ultilise it in MFC as I only know in console mode.

TQ
Michael.
 
J

Julie

Michael said:
Any idea that I can convert a value of type Decimal or String into Hex value
in MFC VC++.NET?

I know there is a function hex(std::ios_base&), but I don't know how to
ultilise it in MFC as I only know in console mode.

TQ
Michael.

_itoa(value, dest, 16)

or

wsprintf(dest, "%X", value)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top