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

Erik.


Attached Files
.zip   HEXED8RN.ZIP (Size: 270.8 KB / Downloads: 5)
.zip   HEXED8RO.ZIP (Size: 277.7 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

And is attached here:


Attached Files
.zip   HEXED8RO.ZIP (Size: 277.7 KB / Downloads: 12)
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: 11 Guest(s)