🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SHGetFolderPath() v. SHGetSpecialFolderLocation()

#5909
From: Jim Dodd
Date: Fri, 24 Jun 2005 12:59
30 lines
2162 bytes
Andrue Cope [TeamB] wrote:
> OS is Win2K.
> 
> Problem 1:
> SHGetSpecialFolderLocation() returns the error 'A parameter is
> incorrect' when asked about CSIDL_MYDOCUMENTS.
> 
> Problem 2:
> SHGetFolderPath() is apparently the newer function to call from Win2K
> onward but when I try the linker can't find it.
> 
> Curiously ShGetSpecialFolderLocation() can correctly return the path
> for CSIDL_COMMON_DOCUMENTS.
> 
> Presumably I'm doing something silly somewhere but as of yet I haven't
> worked out what it is - can anyone enlighten me?

I have a copy of the (apparently out-of-print) book "Visual C++ Windows
Shell Programming" by Dino Esposito. I don't see SHGetFolderPath()
mentioned there. He talks about SHGetSpecialFolderPath() and says this
was added with Windows Shell Version 4.71 (it came with IE 4.0 with the
Active Desktop shell update so even Win 95 and NT can use it if they
have those updates).

I see SHGetSpecialFolderPath() in the header files that come with BCB6.
I'm not sure why you are getting the "parameter is incorrect" error
for CSIDL_MYDOCUMENTS. Sorry.

Jim Dodd
Onset Computer Corp.
Technical Details
Message-ID: <42bc03ad@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42bbf20c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bb66d9f48de143d0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 24 Jun 2005 08:59:27 -0400
From: Jim Dodd <bcbuilderboy@yahoo.com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: SHGetFolderPath() v. SHGetSpecialFolderLocation()
References: <42bbf20c$1@newsgroups.borland.com>
In-Reply-To: <42bbf20c$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.75.243.228
Message-ID: <42bc03ad@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119617965 24.75.243.228 (24 Jun 2005 05:59:25 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail