Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Hexeditor project
#31
(04-26-2023, 10:09 PM)eoredson Wrote: So the OK/Cancel box at the splash screen is in an endless loop??

The code is gone man! Yours
   

 and I deleted mine last night.


From what I remember it tried to create a folder under C:\Programs called "Hexedit" and in that folder write the config file but the folder never got made and so the config file could not be written. Whenever that occurs in your program that is when things failed. It had to be near startup of program because I never got quizzed what file I wanted to see in HexEdit. C:\Programs\HexEdit does not exit in my system.
b = b + ...
Reply
#32
Ok, this version is where I am using the default directory to store the config file and restored the file menu box and removed the startbox..

See if this changes anything.

Thanks, Erik.
Reply
#33
Information 
Never mind, took another look at this program... was going to say the following and much more:

It's because around line #4124 of this program, in "ReadConfigFile" subprogram, this program uses ENVIRON$() like crazy to obtain configuration.

Only the beginning of it asks for like 10 variables set LOL.



One thing that it does is create a "C:\TEMP" if it doesn't exist, to hold some temporary files.

The save or open file requester should begin in the user area, not "Program Files", to make life easier for most people. It looks like the "GetConfigFileName" subprogram is hardwired to start the dialog into "Program Files". On 64-bit this would never go into the 32-bit directory, that's why it's not advised to start there or anywhere Windows wants to put a "smart screen" on the user.
Reply
#34
What's mnr talking about? There is only one download, has to be me Smile

Because latest compiles and quizzes me for file to load:
   

The config is stored with source and exe, perfect place IMHO.
b = b + ...
Reply
#35
Made you look. Was trying to help square away stuff but I guess I arrived too late. Huh
Reply
#36
(04-27-2023, 12:21 AM)mnrvovrfc Wrote: Never mind, took another look at this program... was going to say the following and much more:

It's because around line #4124 of this program, in "ReadConfigFile" subprogram, this program uses ENVIRON$() like crazy to obtain configuration.

Only the beginning of it asks for like 10 variables set LOL.



One thing that it does is create a "C:\TEMP" if it doesn't exist, to hold some temporary files.

The save or open file requester should begin in the user area, not "Program Files", to make life easier for most people. It looks like the "GetConfigFileName" subprogram is hardwired to start the dialog into "Program Files". On 64-bit this would never go into the 32-bit directory, that's why it's not advised to start there or anywhere Windows wants to put a "smart screen" on the user.

I said: GetConfigFilename$ is no longer in use! I just had not deleted it yet... Huh
Reply
#37
Therefore, ReadConfig and WriteConfig are putting Hexedit?.cfg in the default directory you have loaded it from where the ? is the node 0-9

Removes CreateFile and CreateFileA from library function declarations, and rolls back from dialog box to old file menu box..

Apparently CreateFile either does not exist in QB64-64 (as opposed to 32 bit) or I got the parameters wrong!?

Erik.
Reply
#38
Finally, I have moved the ansi splash screen and messagebox above the main file loop.

This finishes this project for awhile.

Code: (Select All)
v8.0a rE.0a updates 04/20/2023:
  Adds BreakBox for Ctrl-Break trap.
  Updates dialogx.inc for correct title.
  Includes more old hexeditor in oldsrc.zip
  Fixes problem with CreateFile function call.

v8.0a rF.0a updates 04/28/2023:
   Removes some code from Sub ReadConfig and Sub WriteConfig.
   Stores config filename node in Sub GetConfigFilename$
   Adds Alt-F11 to test dialog box.
   Adds Alt-F12 to test file menu box.
   Forces config filename to current path.

v8.0a rG.0a updates 05/18/2023:
   Fixes \\ in directory display in Sub Menu3.

v8.0a rH.0a updates 05/20/2023:
  Fixes print display for Alt-F11 and Alt-F12
  Adds Filemenubox setting to hexedit.cfg
  Adds Errorbox2 to select file menu box/dialog box at start.

v8.0a rI.0a updates 05/23/2023:
  Adds more up/down scancodes to some message boxes.
  Updates oldsrc.zip with newer Hexxit81 features.
  Adds <escape> to exit system in call to ErrorBox2 in startup.

v8.0a rJ.0a updates 06/01/2023:
  Fixes netpath in Call Menu during startup box.
  Calls Delete.Process in exit from startup box and breakbox.

v8.0a rK.0a updates 06/10/2023:
  Fixes error when started from netpath.

v8.0a rL.0a updates 06/15/2023:
  Fixes error when writing config to cd-rom drive.
  Adds [FLOPPY] to DriveType in Function DriveExists.

v8.0a rM.0a updates 08/15/2023:
  Fixes MaxFiles in some UDTs.

v8.0a rN.0a updates 08/20/2023:
  Adds _ControlChr Off to top of main.
  Removes some assigned screen save variables.

v8.0a rO.0a updates 08/25/2023:
  Adds MouseButton2 to Sub Menu.
  Adds Control-F12 to edit hexedit.cfg

v8.0a rP.0a updates 11/10/2023:
   Now forces user to admin status.
   Adds Left-DoubleClick mouse to Sub Menu.
   Fixes search string during replace in ScrnEdit.

v8.0a rQ.0a updates 01/01/2024:
   Hexxit oldsrc v8.2a upgrade notes:
     Adds Insert filename in FileMenuBox in File box in Hexedit5.bas.
   Hexxit oldsrc v8.3a upgrade notes:
     Adds shell to treedel in delete dir in file box.

v8.0a rR.0a updates 01/10/2024:
  Replaces LoadIcon with Icon2BMP.
   Hexxit oldsrc v8.4a upgrade notes:
     Repairs SortFilesX in Filebox.
     Adds Ctrl-Fx to Alt-Fx in FileBox.
     Increments MaxFiles to 15.
     Fixes problem in Dir$ in LoadMultipleFiles.
     Solves cursor color upon exit to dos.

v8.0a rS.0a updates 02/20/2024:
   Hexxit v8.5a upgrade notes:
    Fixes call to Dir$
    Fixes Windows.Detected default.

Hexed8rS.zip for QB64
Hexxit85.zip for VBdos

Erik.


Attached Files
.zip   HEXXIT85.ZIP (Size: 406.31 KB / Downloads: 7)
.zip   HEXED8RS.ZIP (Size: 363.77 KB / Downloads: 5)
Reply
#39
Hi,

I have decided to bump this project to the top. It contains some critical bug fixes:

Code: (Select All)
v8.0a rM.0a updates 08/15/2023:
 Fixes MaxFiles in some UDTs.

v8.0a rN.0a updates 08/20/2023:
 Adds _ControlChr Off to top of main.
 Removes some assigned screen save variables.

v8.0a rO.0a updates 08/25/2023:
 Adds MouseButton2 to Sub Menu.
 Adds Control-F12 to edit hexedit.cfg

v8.0a rP.0a updates 11/10/2023:
  Now forces user to admin status.
  Adds Left-DoubleClick mouse to Sub Menu.
  Fixes search string during replace in ScrnEdit.

v8.0a rQ.0a updates 01/01/2024:
  Hexxit oldsrc v8.2a upgrade notes:
    Adds Insert filename in FileMenuBox in File box in Hexedit5.bas.
  Hexxit oldsrc v8.3a upgrade notes:
    Adds shell to treedel in delete dir in file box.

v8.0a rR.0a updates 01/10/2024:
  Replaces LoadIcon with Icon2BMP.
  Hexxit oldsrc v8.4a upgrade notes:
    Repairs SortFilesX in Filebox.
    Adds Ctrl-Fx to Alt-Fx in FileBox.
    Increments MaxFiles to 15.
    Fixes problem in Dir$ in LoadMultipleFiles.
    Solves cursor color upon exit to dos.

v8.0a rS.0a updates 02/20/2024:
   Hexxit v8.5a upgrade notes:
    Fixes call to Dir$
    Fixes Windows.Detected default.

Hexed8rS.zip for QB64
Hexxit85.zip for VBdos

And is attached here:


Attached Files
.zip   HEXED8RS.ZIP (Size: 363.77 KB / Downloads: 15)
.zip   HEXXIT85.ZIP (Size: 406.31 KB / Downloads: 17)
Reply
#40
Another nice update to this great hex editor, the best one in QB64 I've seen.   This is worthy to download even just to have the API stuff to see how to use them. 

- Dav

Find my programs here in Dav's QB64 Corner
Reply




Users browsing this thread: 1 Guest(s)