Author: Ratko V Tomic
Date: 05:34:15 12/02/00
Go up one level in this thread
> I have not changed anything ! In fact here it always opens in the > install directory, but that is under NT. I am using Chess Tiger under win98. The program can always find its EXE directory under win32 (e.g. using GetModuleFileName( GetModuleHandle(0) ); ), be it for 9x or NT, and from that path it can obtain the initial default database (or any other) directory. Or, the install should leave all the info at a known registry key or a known ini file, or your own config file (if you wish to avoid needless non-portability). But in any case, once user selects database anywhere, the program ought to remember that directory and offer it as a default for database open the next time. It is even hard to imagine how getting the default database path could be written to work on NT but fail on 9x/ME (and much less for the "last path user selected" that the program would have saved somewhere). Well, I guess, it could be done somehow, if one is really trying to. Basically, anything that user spends time and effort inputing into your program (and which might be required later) ought to be saved by the program and offered as a default the next time (since any such saving to a user replicates over thousands of users and dozens or hundreds of times per user during the lifetime of the program). That should certainly hold for various directories (also, with a sensible _initial_ defaults, i.e. before user ever invokes a given Save/Open option; "My Documents" is, at best, a sensible initial default for Notepad or Word [eben this is doubtful] but surely not for a chess database; I doubt there is one in 10,000 users who keeps CT chess databases in "My Documents" or "My Web" Windows folders).
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.