Conversion Hex to char - (ascii??)

jabiii
jabiii used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
template char HexStrToChar(const T &HexStr)
{
std::istringstream ist(HexStr);
int value;
ist >> std::hex >> value;
return value;
}

Commented:
Check out the following link for more info:
http://axter.com/faq/topic.asp?TOPIC_ID=58&FORUM_ID=4&CAT_ID=9
Commented:
Oops!!
Correction:

      template< typename T > char HexStrToChar(const T &HexStr)
      {
            std::istringstream ist(HexStr);
            int value;
            ist >> std::hex >> value;
            return value;
      }
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

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

Commented:
>>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)

Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial