Article View: borland.public.cppbuilder.nativeapi
Article #3861Re: Memory in TOpenDialog
From: Jos�
Date: Sat, 22 Apr 2006 21:14
Date: Sat, 22 Apr 2006 21:14
30 lines
2063 bytes
2063 bytes
On Sat, 22 Apr 2006 22:25:52 +0200, Michel Leunen <nospam@noreply.please> wrote in borland.public.cppbuilder.nativeapi: >Look at TOpenDialog::InitialDir. It's empty. >According to the help file: >"If no value is assigned to InitialDir, or if the specified directory >does not exist, the initial directory is controlled by the global >ForceCurrentDirectory variable. If ForceCurrentDirectory is true, the >dialog opens with the current working directory displayed. Otherwise, >the dialog opens with either the current working directory or the My >Documents directory, depending on the version of Windows." My help file says: If no value is assigned to InitialDir, or if the specified directory does not exist, the dialog opens with the current working directory displayed. But what is the Current Working Directory? Where is this info stored (each program stores it separately and it survives a reboot) and how to retrieve it without calling OpenDialog->Execute() ? getdcwd and getcurdir won't do, since these require a drive letter. Besides, these functions probably produce info which is system wide, and which does not resist a reboot. So this is not the info I want. -- Jos�
Technical Details
Message-ID:
<km6l42992ap2gk8uu1vdktg25p7l0v771f@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<be3l42lps235eq260mon24b54pdujv70tm@4ax.com> <444a90ba$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,874003eaa06d78a5 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: Jos� <jose@127.0.0.1> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Memory in TOpenDialog Date: Sat, 22 Apr 2006 23:14:07 +0200 Message-ID: <km6l42992ap2gk8uu1vdktg25p7l0v771f@4ax.com> References: <be3l42lps235eq260mon24b54pdujv70tm@4ax.com> <444a90ba$1@newsgroups.borland.com> X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 82.75.14.62 X-Trace: newsgroups.borland.com 1145740474 82.75.14.62 (22 Apr 2006 14:14:34 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail