Link to home
Start Free TrialLog in
Avatar of jabiii
jabiiiFlag for United States of America

asked on

Conversion Hex to char - (ascii??)

I would like to convert something like this: "F076 3211 5010 7D78 5140" to its corrisponding char value, ".v2.P.}xQ@",
I have seen alot of the other way around, ie from char to hex, but nothing from hex to char :(
I know there has to be a way/formula something.... I am just missing it:(

Thanks in advance.
Jim
Avatar of Axter
Axter
Flag of United States of America image

template char HexStrToChar(const T &HexStr)
{
std::istringstream ist(HexStr);
int value;
ist >> std::hex >> value;
return value;
}
Check out the following link for more info:
http://axter.com/faq/topic.asp?TOPIC_ID=58&FORUM_ID=4&CAT_ID=9
ASKER CERTIFIED SOLUTION
Avatar of Axter
Axter
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of knightmad
knightmad

Hehehe, nice job Axter, I couldn't even read the question and you have already answered : )
>>Hehehe, nice job Axter, I couldn't even read the question and you have already answered : )

When jkr is on the prowl, I have to be real fast or he beats me by a few seconds.  :-)
I actually leave my computer a few minutes to hake a snack and when I came back .... It've been
BTW, to have a FAQ is a nice idea, don't you need a hand in your Delphi section (I am always thinking about to make my own FAQ-PAQ, but I have no time for this)

At one time I thought about getting into Delphi programming, but there's just so much to learn about C/C++, MFC, Win32-Prg, and .Net, that I don't have time to learn it.

If you would like to create your own FAQ's in my EMPTY Delphi topic area, you're welcome to it.

The site has an automatic registry section.  If you have problems, just send me an email (david@axter.com).
If you email me, make sure you put Experts-Exchange as your name, or my email filter will block your email.