Posts: 369
Threads: 71
Joined: Jul 2022
Reputation:
14
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,586
Threads: 59
Joined: Jul 2022
Reputation:
52
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: 369
Threads: 71
Joined: Jul 2022
Reputation:
14
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: 728
Threads: 119
Joined: Apr 2022
Reputation:
106
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