Article View: borland.public.cppbuilder.migration
Article #134Re: ExtractFilePath doesn't work when I upgrade my project from BCB6.
From: Larry Griffiths
Date: Mon, 07 Jul 2008 20:28
Date: Mon, 07 Jul 2008 20:28
29 lines
1625 bytes
1625 bytes
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. We used to just get the absolute path I think. Larry. "Gene" <shenjige@yahoo.ca> wrote in message news:4865eef2$1@newsgroups.borland.com... > > Hi, > > I don't know why the function ExtractFilePath doesn't work on me when I > ugraded my project from BCB6. The code is here: > > AnsiString FName = Application->ExeName; > AnsiString path = ExtractFilePath(FName); > > path is Null. It is strange. I did test on a brand new project made under > C++ Builder 2007, the function works. I don't know why. Has any one had > that problem before? Any clue of what is going on? > > Thanks. > > Gene. >
Technical Details
Message-ID:
<48727c48$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<4865eef2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit From: "Larry Griffiths" <nospame@nowhere.com> Newsgroups: borland.public.cppbuilder.migration References: <4865eef2$1@newsgroups.borland.com> Subject: Re: ExtractFilePath doesn't work when I upgrade my project from BCB6. Date: Mon, 7 Jul 2008 15:28:03 -0500 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 70.252.174.162 Message-ID: <48727c48$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1215462472 70.252.174.162 (7 Jul 2008 13:27:52 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail