|
-
February 3rd, 2006, 10:07 AM
#33
Re: Hex Viewer / Editor
 Originally Posted by WizBang
Like I posted earlier, you can just use a Long variable. No mystery involved.
Here's the way I edited the code when I was in Debug:
Code:
Private Sub Next_Block()
If File_Change Then Write_Data (File_Pos)
File_Pos = File_Pos + Tot_Count
If File_Pos > (CLng(Scroll_Pos.Max) * 16) Then
File_Pos = (CLng(Scroll_Pos.Max) * 16)
End If
Read_Data File_Pos
End Sub
However, it would be more efficiant to use a Long.
I adjusted the code like that.. But still 1 small problem ... Integer max = 32767... Scroll_Pos.Max * 16 = a limit of 524K..
So if you open a file of 600K you can only view the first 524K..
Any Luck on finding why the color goes funny.. (try taking the hexD.visible = True / False out )
Grem...
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|