rcblanke wrote:I actually have started on a Win32 port using Visual C++ 2012. Will post the compiled application and code when it is somewhat usable.
I wish you the very best of luck with that.... From what I'm seeing with VS2008 (got that one legally too,) it's pretty much going to take a complete rewrite. Of course, I'm getting very familiar with how the code works with my tweaks and such. Other than cleaning some things up, it's pretty much finished. A lot of the issues I have with it now are just my personal sense of neatness. It's invisible to the end user, but internally, for example (and the original code tended to do this too, the default directories (. & ..) would stay in the path. Which would limit the usable path length. So, if you issued the command "D ..\..\Templts\*.frm" on the C drive (for example,) the resulting path would be "C:\Work\Access\Personal\Drafts\..\..\Templts\*.frm". You would actually get a listing of all the .frm files in the C:\Work\Access\Templts directory, so you get where you're going. But when you consider that the total string length cannot be more than 81 characters (drive = 2, path maxed to 66, 8 for filename, 3 for extension, 1 for the "." and 1 for the final "\",) you can see how that might limit things a bit. That example just wasted 22 of those 81 characters.) So, I'm looking into extending that 81 somehow. The 32 bit compilers I've been looking at have extremely large maximums (256 "each" for the path, filename, AND extension, for example and 6 for the drive.) Also, when I was learning DOS (back in the day,) before 32 bit windows....(ok, I'm dating myself.) The actual maximum path length (with drive path file & extension,) was exactly 256 characters. That was the size of the buffer. Still much better than 81 though. Mainly the plan is to parse the . and .. entries "before" I start working with the MAXSIZE variables for path. If you examine the code, you'll see I took the path processing routines out of the object class. This is the main reason, it allows me more "space" to work with. Trying to add the space for extra variables, and rather large ones, was causing some rather interesting effects (in DOSBox at least.) The MYDIR.CPP file is really just a mislabeled header file anyway. It's there to define the DIR class variable contents and that all. Technically, the "sort" functions should be removed too, but I don't really see a need for that yet.
I think I have most of the bugs out. I wish there was a way to remove the need to load the entire directory into memory. But sorting becomes problematical if you do. Also the scrolling feature becomes an issue. That's one of the things I like about this model 😀 I'm looking into streamlining things a bit more. Another reason for moving the parsing utility out of the object class, was to allow me to find the broken ones before jumping completely out of the main function list (from what I'm reading, the DIR::DIR counts as a variable, and gets moved to data memory because of it's size.) I also still want to find ways to make the code more compliant. The problem is, that there are no color controls for purely text based commands outside of the ones in conio, that don't exist in any other compiler I've found (so far.) The (I'm sorry to say, rather broken,) dir.h is also another command set that's disappeared it seems. But that is something I can work on 😀 Lose the ffblk structure, but there are replacements, or I can just build one myself using common functions (that every compiler has.) Once away from Borland, I could even call it the same thing 😀
But on to the next bit. A new release is ready... Finally ready (I hope, fingers crossed,) to label it beta 😀 So without further ado, here is v1.5b 😀