🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.migration
Article #123

ExtractFilePath doesn't work when I upgrade my project from BCB6.

#123
From: Gene
Date: Sat, 28 Jun 2008 07:57
13 lines
1277 bytes
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: <4865eef2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,17ff24494bd385b4,start
X-Google-Attributes: gid110f51,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Gene" <shenjige@yahoo.ca>
Sender: "Gene" <shenjige@yahoo.ca>
Reply-To: "Gene" <shenjige@yahoo.ca>
Subject: ExtractFilePath doesn't work when I upgrade my project from BCB6.
Newsgroups: borland.public.cppbuilder.migration
X-User-Info: 65.49.14.27     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4865eef2$1@newsgroups.borland.com>
Date: 28 Jun 2008 00:57:38 -0700
X-Trace: newsgroups.borland.com 1214639858 207.105.83.66 (28 Jun 2008 00:57:38 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail