🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetPartialFileName

#13351
From: Remy Lebeau (TeamB)
Date: Fri, 17 Oct 2003 05:43
13 lines
1623 bytes
"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: <3f8f810d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!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-16 22:59:19 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f8f7e6f@newsgroups.borland.com>
Subject: Re: GetPartialFileName
Date: Thu, 16 Oct 2003 22:43:51 -0700
Lines: 15
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: 67.22.137.75
Message-ID: <3f8f810d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066369293 67.22.137.75 (16 Oct 2003 22:41:33 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail