Click here to Skip to main content
16,011,778 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Remote debugging Pin
User 58385224-May-05 0:49
User 58385224-May-05 0:49 
GeneralRe: Remote debugging Pin
doublebug24-May-05 9:47
doublebug24-May-05 9:47 
GeneralRe: Remote debugging Pin
JC907924-May-05 21:18
JC907924-May-05 21:18 
GeneralConvert from hexadecimal to byte Pin
User 197776923-May-05 5:06
User 197776923-May-05 5:06 
GeneralRe: Convert from hexadecimal to byte Pin
toxcct23-May-05 5:15
toxcct23-May-05 5:15 
GeneralRe: Convert from hexadecimal to byte Pin
User 197776923-May-05 6:27
User 197776923-May-05 6:27 
GeneralRe: Convert from hexadecimal to byte Pin
lynchspawn23-May-05 6:40
lynchspawn23-May-05 6:40 
GeneralRe: Convert from hexadecimal to byte Pin
User 197776923-May-05 7:52
User 197776923-May-05 7:52 
Hello,

I have proved your solution with this code:

		char *demodemoHex = "5863d9e4cbdf522eaa62e0747fceb1c5b249ba13";<br />
		char **stopString;<br />
		BYTE *hexArray = new BYTE[20];<br />
		int j = 0;<br />
		char hexChar[2];<br />
<br />
		for (int i=0; i < 20; i++)<br />
		{<br />
			hexChar[0] = demodemoHex[j];<br />
			hexChar[1] = demodemoHex[j+1];<br />
			hexArray[i] = strtoul(hexChar, stopString, 16);<br />
			j = j + 2;<br />
<br />
		}<br />
<br />
		cout << "@@@@ hexArray value visualization" << endl;<br />
		for (int i = 0; i < 20; i++)<br />
		{<br />
			printf("%2.2x ",hexArray[i]);<br />
		} 



And the output is:

@@@@ hexArray value visualization
58 63 d9 e4 cb df 52 2e aa 62 e0 74 7f ce b1 c5 b2 49 ba 13



It seems to be OK!!! I´m going to prove the output hexArray with some Cryptographyc functions. I will tell you what happen.

Thank you very much!!! Smile | :)
GeneralRe: Convert from hexadecimal to byte Pin
User 197776923-May-05 23:58
User 197776923-May-05 23:58 
GeneralRe: Convert from hexadecimal to byte Pin
David Crow23-May-05 7:26
David Crow23-May-05 7:26 
GeneralRe: Convert from hexadecimal to byte Pin
User 197776923-May-05 7:31
User 197776923-May-05 7:31 
GeneralVisual Source Safe... Pin
Max Santos23-May-05 4:32
Max Santos23-May-05 4:32 
GeneralRe: Visual Source Safe... Pin
BlackDice23-May-05 5:06
BlackDice23-May-05 5:06 
GeneralRe: Visual Source Safe... Pin
Max Santos24-May-05 1:01
Max Santos24-May-05 1:01 
GeneralRe: Visual Source Safe... Pin
Susan Hernandez17-Aug-05 13:19
Susan Hernandez17-Aug-05 13:19 
GeneralScreen capture/record in swf (flash) file format Pin
Cesario Simoes, jr23-May-05 3:45
Cesario Simoes, jr23-May-05 3:45 
GeneralVBA6 Automation issue Pin
Prasanth M23-May-05 3:45
Prasanth M23-May-05 3:45 
QuestionHow can i display different text in the splitter windows Pin
nripun23-May-05 3:35
nripun23-May-05 3:35 
GeneralWhy I can't use one more CBUTTON variable Pin
yeetins23-May-05 3:06
yeetins23-May-05 3:06 
GeneralRe: Why I can't use one more CBUTTON variable Pin
toxcct23-May-05 3:08
toxcct23-May-05 3:08 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 3:15
yeetins23-May-05 3:15 
GeneralRe: Why I can't use one more CBUTTON variable Pin
toxcct23-May-05 3:18
toxcct23-May-05 3:18 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 3:28
yeetins23-May-05 3:28 
GeneralRe: Why I can't use one more CBUTTON variable Pin
toxcct23-May-05 3:37
toxcct23-May-05 3:37 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 3:49
yeetins23-May-05 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.