![]() |
Hexedit Bug ?? |
Post Reply
|
| Author | |
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Topic: Hexedit Bug ??Posted: 07 May 2007 at 9:32am |
|
Hello,
Start your HexEdit sample. Set cursor on first byte, on '5'. Input '0', SHIFT 'F'. Display show now 'EF'. Why ? Any solution ? Jimmy |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 May 2007 at 1:13pm |
|
Hello,
You right, :( CXTHexEdit didn't check for upper chars :(
Please patch CXTHexEdit::OnChar in
"if (isxdigit(nChar))" block
UINT b = 0;
if (nChar >= 'a')
b = 10 + nChar - 'a'; else if (nChar >= 'A') b = 10 + nChar - 'A'; else if (nChar >= '0') b = nChar - '0'; else break; if (b >= 16) break; |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2007 at 10:22am |
|
Thanx,
Now it work correct. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |