troubleshooting Question

How to Convert Hexadecimal Text to a Byte array ?

Avatar of INOVONICA
INOVONICAFlag for Portugal asked on
SoftwareEditors IDEs
3 Comments1 Solution1944 ViewsLast Modified:
Hi Experts
Im new on C++/CLI

I have a textBox2 written with a string of hexadecimal 283F59A4010000BD
I want to read this data and insert it on a OutputBuffer[i]  to send  to a USB port   for   Device identification

How do I convert a String in Hexadecimal Text ( from a textBox or dataGridView Cell )  to an workable byte program array  ?
I pretend to catch pairs of hexadecimal  text and put these pairs on the Buffer program Like:
OutputBuffer[0]= 0x28
OutputBuffer[1]= 0x3F
OutputBuffer[2]= 0x59
...etc

Thank you and Regards
Carlos
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros