🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

SHGetFolderPath() v. SHGetSpecialFolderLocation()

#5906
From: Andrue Cope [TeamB]
Date: Fri, 24 Jun 2005 11:44
19 lines
1411 bytes
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?
-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <42bbf20c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bb66d9f48de143d0,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: SHGetFolderPath() v. SHGetSpecialFolderLocation()
Newsgroups: borland.public.cppbuilder.nativeapi
Date: Fri, 24 Jun 2005 12:44:11 +0100
User-Agent: XanaNews/1.17.5.3
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <42bbf20c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119613452 217.207.223.34 (24 Jun 2005 04:44:12 -0700)
Lines: 19
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail