🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SpecialFolderLocation!

#13800
From: Safari
Date: Sun, 14 Sep 2003 00:17
33 lines
2018 bytes
| "Safari" <Safari@alloymail.com> wrote in message
| news:3F63A478.1080901@alloymail.com...
|
| > Not work in Win9X! why?
|
| Do you have IE5+ installed?  CSIDL_PROGRAMFILES was introduced in v5.0 of
| Shlwapi.dll that is shipped with IE5.
|
   Hello & Thanks Remy,
   My IE & OE is:
   6.00.2800.1106 in Win2K
   5.50.???       in Win98

| > Return me an empty value!
|
| You're not checking values at all.  If SHGetSpecialFolderLocation fails,
its
| return value tell you why it failed.
|
   When i call GetPath(CSIDL_PROGRAMFILES) my Label1.Caption is empty!
   I know GetWindowsDirectory() & GetSystemDirectory() but i want
   to get any special folders & need to this function.
   CSIDL_PROGRAMFILES, CSIDL_WINDOWS, CSIDLS_FONT & ....

   Thanks again,
   Safari
| > or Label1.Caption := GetPath($24);
|
| 0x0024 is CSIDL_WINDOWS, not CSIDL_PROGRAMFILES.  CSIDL_WINDOWS was also
| introduced in Shlwapi.dll v5.0.  Use GetWindowsDirectory() instead for
| systems where CSIDL_WINDOWS is not available.
|
| Gambit
Technical Details
Message-ID: <3f63b367@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3F63A478.1080901@alloymail.com> <3f639f01$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,64d61a6d0b62f704
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-13 17:21:10 PST
From: "Safari" <Safari@alloymail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3F63A478.1080901@alloymail.com> <3f639f01$1@newsgroups.borland.com>
Subject: Re: SpecialFolderLocation!
Date: Sun, 14 Sep 2003 04:47:03 +0430
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 194.225.63.254
Message-ID: <3f63b367@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063498599 194.225.63.254 (13 Sep 2003 17:16:39 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail