Article View: borland.public.cppbuilder.migration
Article #135Re: ExtractFilePath doesn't work when I upgrade my project from BCB6.
From: Remy Lebeau (TeamB)
Date: Mon, 07 Jul 2008 21:55
Date: Mon, 07 Jul 2008 21:55
18 lines
1567 bytes
1567 bytes
"Larry Griffiths" <nospame@nowhere.com> wrote in message news:48727c48$1@newsgroups.borland.com... > We have something strange with ExtractFilePath(Application->ExeName) > but if I remember correctly the Application.Exe name has some ../ in it to > go up a level and then down to a directory. The Application->ExeName property cannot return such a value. > We used to just get the absolute path I think. The Application->ExeName property getter calls ParamStr(0), which calls GetModuleFileName(), which always returns an absolute path to the file that the calling process was spawned from. Gambit
Technical Details
Message-ID:
<48729776$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4865eef2$1@newsgroups.borland.com> <48727c48$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.migration References: <4865eef2$1@newsgroups.borland.com> <48727c48$1@newsgroups.borland.com> Subject: Re: ExtractFilePath doesn't work when I upgrade my project from BCB6. Date: Mon, 7 Jul 2008 14:55:58 -0700 Lines: 20 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <48729776$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1215469430 207.178.157.90 (7 Jul 2008 15:23:50 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail