HyperEngineer
Programmer
How do I convert a decimal number (integer or long) to a hex string. The ones I've seen in this an the other C++ forum use the hex method with cout. I want to put the result in a CString.
When compiling I get an error that says it can't convert form long to std::ios_base &.
Any help would be appreciated.
HyperEngineer
If it ain't broke, it probably needs improvement.
Code:
CString sHexString;
long lDecValue;
lDecValue = 3101334
sHexString = hex(lDecValue);
When compiling I get an error that says it can't convert form long to std::ios_base &.
Any help would be appreciated.
HyperEngineer
If it ain't broke, it probably needs improvement.