Article View: borland.public.cppbuilder.nativeapi
Article #17616Re: How to get application's directory?
From: Early Ehlinger
Date: Sun, 23 Mar 2003 00:17
Date: Sun, 23 Mar 2003 00:17
17 lines
1708 bytes
1708 bytes
"Rodolfo Frino - Stargate Software" <starcinema@eftel.com> > Can you post a minimal but complete example? He already did: Remy wrote: > AnsiString Path = ExtractFilePath(Application->ExeName); Anyway, you can't rely on GetCurrentDirectory to tell you the directory anyway, because the process that launches your application (typically explorer) could set the startup directory to something other than your exe's location. See the CreateProcessApi for details. -- -- Early Ehlinger CEO, ResPower Inc - Toll-Free : 866-737-7697 -- www.respower.com -- 500+ GHz Supercomputer Starting At USD$0.50/GHz*Hour
Technical Details
Message-ID:
<3e7cfd40$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>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-24 00:18:40 PST From: "Early Ehlinger" <early@respower.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> Subject: Re: How to get application's directory? Date: Sat, 22 Mar 2003 18:17:52 -0600 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 206.166.224.226 Message-ID: <3e7cfd40$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048378688 206.166.224.226 (22 Mar 2003 16:18:08 -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