Visual C++ Help...

zoobaby

Supreme [H]ardness
Joined
Jun 7, 2004
Messages
6,179
Ok I am a nub when it comes to C++ and I just a small program to test my project. What I am trying to do:

1. User puts a value into TextBox1
2. A button is pressed
3. The program takes that value and loads it into a 64 byte buffer
4. Send to USB endpoint.

What I have so far: 1, 2, 4 Missing: step 3

I just don't know how to read the value the user put in the text box. Then how do I write that value to the output buffer.

Assumption, and not checking as this is a personal debug tool, that the value in the text box is in HEX, and when I read the text box, it stays as hex, and when I write it out it stays as hex.

Example:
In the text box is: 050612DEADBEEF
Want to read to the out buffer OB [] as:
OB[1] = 05;
OB[2] = 06;
...
OB[6] = BE;
OB[7] = EF;

Make sense?

I am using visual studio 2008 express if that matters.
 
It is just a plain text box in a simple UI. I'll look into those...thanks!!!
 
Back
Top