CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 5 of 5 FirstFirst ... 2345
Results 61 to 67 of 67
  1. #61
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: Hex Viewer / Editor

    Ok .. Sorted some of the code out and rebuilt the Zip...

    Wof .. Try this one out ..

    Gremmy....

    ---- EDIT ----
    Newer file in later post.. (306 Downloads)
    Last edited by GremlinSA; July 19th, 2007 at 12:49 PM.
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  2. #62
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Hex Viewer / Editor

    Phantastatic, man. I love it.

  3. #63
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: Hex Viewer / Editor

    Well this was such a succesfull project (306 downloads say's it all..) and there were a few little bugs in it that were nagging at me for some time, i decided to make a day (or rather a night) of Hex Editor Bugging...


    * - Popup 'Fill With' on the text now works correctly..
    * - When paging the pos display updates correctly..
    * - Added all the Logics posible to the 'Logics Edit' Popup..
    * - A few other minors corrected..

    I'm acctually finding the hex editor a handy tool to work on just about any file you can think of.. Most raw data file types have the Hex editor now linked as Primary open application , and many others have Hex Editor listed under 'Open with'...

    And it looks like others are finding it as useful as i am..

    I hope you enjoy this latest update...

    Gremmy...

    ---EDIT---
    6 Downloads..
    Attached Files Attached Files
    Last edited by GremlinSA; July 20th, 2007 at 12:55 PM. Reason: Updated file in zip...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  4. #64
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Hex Viewer / Editor

    Nice. Finally replaces a clunky old one that I used...
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #65
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Hex Viewer / Editor

    Yes. I like it very much, too. Such a good big display. Gives a great overview. Very well done.

    As a point for a wishlist, if I may:
    Quick navigation with keys could do with
    Ctrl-Home: goto Top of File
    Ctrl-End: goto End of File
    Maybe I can put that in myself. Your code is very comprehensive.

  6. #66
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: Hex Viewer / Editor

    Quote Originally Posted by WoF
    Yes. I like it very much, too. Such a good big display. Gives a great overview. Very well done.

    As a point for a wishlist, if I may:
    Quick navigation with keys could do with
    Ctrl-Home: goto Top of File
    Ctrl-End: goto End of File
    Maybe I can put that in myself. Your code is very comprehensive.
    Just a little note on Ctrl-Home & Ctrl-End. .. these two key comdinations do work if focus is on the side scroller bar (built into the control), but to add function to the hex and/or text windows is only a few lines of code..)

    Add these two subs to 'Frm_Hex_edit'
    Code:
    Private Sub Home_Block()
    If File_Change Then Write_Data File_Pos
    File_Pos = 0
    Read_Data File_Pos
    End Sub
     
    Private Sub End_Block()
    If File_Change Then Write_Data File_Pos
    File_Pos = IIf(File_Len > (Tot_Count / 2), (File_Len - (Tot_Count / 2)), 0)
    Read_Data File_Pos
    End Sub
    and in HexD_KeyDown add a few lines to this sections
    Code:
    If KeyCode = vbKeyHome Then ' Move to the first box
    	If Shift And vbCtrlMask Then
    		Home_Block
    	End If
    	HexD.SetFocus
    	HexD.SelStart = 0
    	HexD.SelLength = 1
    	KeyCode = 0
    End If
    If KeyCode = vbKeyEnd Then ' Move to the last box
    	If Shift And vbCtrlMask Then
    		 End_Block
    	End If
    	HexD.SetFocus
    	HexD.SelStart = Set_H_Actual(Tot_Count - 1, Mnu_Opt_Wide.Checked)
    	HexD.SelLength = 1
    	KeyCode = 0
    End If
    And the same changes in Hex_Val_Keydown...

    Thanks for the sugestion... and as you can see I've added them already.. ( Also updated the Zip with these changes)

    Gremmy...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  7. #67
    Join Date
    Aug 2010
    Posts
    1

    Thumbs up Re: Hex Viewer / Editor

    Thanks GremlinSA
    That's a wicked program. I am writing some sw for the partially-sighted (like myself) and I would like your permission to include your program as part of my project. I will of course credit you with your work and provide a link to your code here. My project will be given to the Sight Concern charity under the GPL licence - which will allow the chariity to give copies of my project to their clients.
    Thanks in advance,
    Allan

Page 5 of 5 FirstFirst ... 2345

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured