Print Page | Close Window

Hexedit Bug ??

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7062
Printed Date: 12 November 2025 at 9:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hexedit Bug ??
Posted By: jimmy
Subject: Hexedit Bug ??
Date 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




Replies:
Posted By: Oleg
Date 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


Posted By: jimmy
Date Posted: 09 May 2007 at 10:22am
Thanx,

Now it work correct.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net