Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TOpenSaveDialog problem in Win2000

Status
Not open for further replies.

astronomer

Programmer
Feb 15, 2002
1
GB
I have an application compiled using Borland c++ v4.52 which uses TOpenSaveDialog. I use TData to provide easy manipulation of the associated flags and names. In particular setting InitialDir to the last one the user accessed. It has worked fine for years under win 95 and 98, and I thought it was ok under 2000. However, even though I have checked that InitialDir is still set correctly in the 2000 environment it always goes back to the root of c! The last filename is remembered, and displayed correctly as are the Filters - but the directory is lost. It starts up in the directory that the prog is run from, but even if you select a file from that directory it goes back to the root of c for subsequent attempts. You can navigate to the file, of course, but it's a real pain.

Has anyone else had this problem?

Thanks for any help as I am mystified.
 
I've experienced this strange behaviour with other languages and other IDE than C++ and BCB so I think it's an Os related "feature". Win 2000 and XP (perhaps also Win ME),in fact, have a different method of handling "initial directory" than Win 98. Those OSs remember the last folder the program used (in an open/save dialog) and always use that directory as "initial directory" for subsequent open/save dialogs (even the next time the program will run).

What is strange in your situation is that if your program use always the same directory, it should be presented with that directory. Bye, Rolandfg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top