Decimal or String Covert to Hex Value

  • Thread starter Thread starter Michael Chong
  • Start date Start date
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.
 
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)
 
Back
Top