🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13281

Re: GetPartialFileName

#13281
From: Chris Hill
Date: Sat, 18 Oct 2003 02:34
20 lines
1297 bytes
On Fri, 17 Oct 2003 01:29:02 -0400, "Stephane Baillargeon"
<sbaillargeon@microids.com> wrote:

>Is there a function in the WinAPI that can give me the filename part and
>leave behind the directory?
>
>Ex:
>
>"C:\Path1\Path2\Filename.fil"
>to this
>"Filename.fil"

GetFullPathName? :)  It returns a pointer to the filename portion of
the path via an out parameter.  If you pass it a full path to start
with, it will just copy it to the buffer and give you the filename
pointer.


Chris Hill
Chris244@aol.com
Technical Details
Message-ID: <3f90a53d.543125653@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f8f7e6f@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-17 19:39:00 PST
From: Chris244@aol.com (Chris Hill)
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: GetPartialFileName
Date: Sat, 18 Oct 2003 02:34:02 GMT
Message-ID: <3f90a53d.543125653@forums.borland.com>
References: <3f8f7e6f@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: 12.221.66.183
X-Trace: newsgroups.borland.com 1066444440 12.221.66.183 (17 Oct 2003 19:34:00 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail