Article View: borland.public.cppbuilder.nativeapi
Article #17610Re: How to get application's directory?
From: Rodolfo Frino - Stargate Softwar...
Date: Sun, 23 Mar 2003 23:49
Date: Sun, 23 Mar 2003 23:49
34 lines
2511 bytes
2511 bytes
Thanks for posting that, it seems interesting. I 'll have a look at the code later. Rodolfo "Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message news:3e7e28c5$1@newsgroups.borland.com... > I know for a FACT that the Win3.1 components alter the current directory, > because they all use the chdir() function internally, which alters the > current working directory for the calling process. I know this because I > looked at the source code for them. As for TOpenDialog, I also know it can > potentially change the current directory because it has an explicit > "ofNoChangeDir" option specifically for the purpose of disabling that > behavior. > > But hey, if you must have an actual sample, then so be it. I posted a > sample project to the .attachments group for you showing that both > TDirectoryListBox and TOpenDialog are capable of altering the path returned > by GetCurrentDirectory(). Enjoy. > > > Gambit > > "Rodolfo Frino - Stargate Software" <starcinema@eftel.com> wrote in message > news:3e7dba28@newsgroups.borland.com... > > No. Read my post carefully, that's not what I asked for. > > I asked for an example with either TOpenDialog or FileCtrl > > controls under the Win3.1 palette so I can verify what he says > > by running the example. > >
Technical Details
Message-ID:
<3e7e50e9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e7a7800$1@newsgroups.borland.com> <3e7a8e39@newsgroups.borland.com> <3e7ae7af$1@newsgroups.borland.com> <3e7c7c8c@newsgroups.borland.com> <3e7cc472$1@newsgroups.borland.com> <3e7cd82a@newsgroups.borland.com> <3e7cfd40$1@newsgroups.borland.com> <3e7dba28@newsgroups.borland.com> <3e7e28c5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,440cb76ba9be739c X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-23 23:51:15 PST From: "Rodolfo Frino - Stargate Software" <starcinema@eftel.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e7a7800$1@newsgroups.borland.com> <3e7a8e39@newsgroups.borland.com> <3e7ae7af$1@newsgroups.borland.com> <3e7c7c8c@newsgroups.borland.com> <3e7cc472$1@newsgroups.borland.com> <3e7cd82a@newsgroups.borland.com> <3e7cfd40$1@newsgroups.borland.com> <3e7dba28@newsgroups.borland.com> <3e7e28c5$1@newsgroups.borland.com> Subject: Re: How to get application's directory? Date: Mon, 24 Mar 2003 10:49:05 +1100 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 203.129.132.54 Message-ID: <3e7e50e9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048465641 203.129.132.54 (23 Mar 2003 16:27:21 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail