Article View: borland.public.cppbuilder.nativeapi
Article #13352Re: GetPartialFileName
From: Stephane Baillargeon
Date: Fri, 17 Oct 2003 06:04
Date: Fri, 17 Oct 2003 06:04
20 lines
1644 bytes
1644 bytes
Thanks Remy "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:3f8f810d$1@newsgroups.borland.com... > > "Stephane Baillargeon" <sbaillargeon@microids.com> wrote in message > news:3f8f7e6f@newsgroups.borland.com... > > Is there a function in the WinAPI that can give me the > > filename part and leave behind the directory? > > Not in the Win32 API itself, no. Well, maybe SHGetFileInfo() with the > SHGFI_DISPLAY_NAME flag, but I do not know how reliable that is. The Shell > Light-weight API (SHLWAPI.DLL) has a PathFindFileName() function, though. > Alternatively, the VCL has an ExtractFileName() function as well. > > > Gambit > >
Technical Details
Message-ID:
<3f8f86b7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f8f7e6f@newsgroups.borland.com> <3f8f810d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5015eee32f4897a5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-16 23:08:52 PST From: "Stephane Baillargeon" <sbaillargeon@microids.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f8f7e6f@newsgroups.borland.com> <3f8f810d$1@newsgroups.borland.com> Subject: Re: GetPartialFileName Date: Fri, 17 Oct 2003 02:04:23 -0400 Lines: 22 Organization: Microids Canada X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 65.94.238.185 Message-ID: <3f8f86b7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066370743 65.94.238.185 (16 Oct 2003 23:05:43 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail