Posts: 4,698
Threads: 222
Joined: Apr 2022
Reputation:
322
04-26-2023, 11:24 PM
(This post was last modified: 04-26-2023, 11:36 PM by bplus.)
(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.
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
Posts: 508
Threads: 105
Joined: Jul 2022
Reputation:
22
04-27-2023, 12:16 AM
(This post was last modified: 04-27-2023, 05:03 AM by eoredson.)
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.
Posts: 1,356
Threads: 58
Joined: Jul 2022
Reputation:
53
04-27-2023, 12:21 AM
(This post was last modified: 04-27-2023, 12:29 AM by mnrvovrfc.)
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.
Posts: 4,698
Threads: 222
Joined: Apr 2022
Reputation:
322
04-27-2023, 12:35 AM
(This post was last modified: 04-27-2023, 12:40 AM by bplus.)
What's mnr talking about? There is only one download, has to be me
Because latest compiles and quizzes me for file to load:
The config is stored with source and exe, perfect place IMHO.
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
Posts: 508
Threads: 105
Joined: Jul 2022
Reputation:
22
04-27-2023, 02:04 AM
(This post was last modified: 04-27-2023, 03:55 AM by eoredson.)
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.
Posts: 811
Threads: 128
Joined: Apr 2022
Reputation:
135
08-28-2023, 12:18 PM
(This post was last modified: 08-28-2023, 12:28 PM by Dav.)
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