🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting the location of My Documents

#1853
From: JB
Date: Sat, 26 May 2007 17:59
25 lines
1713 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>CLSID_MYDOCUMENT is only recognized on XP and higher.  It is
>equivilent to CLSID_PERSONAL, which is recognized on all versions.

CSDIL_MYDOCUMENTS is definitely not working on XP or 2000, 
whereas CSDIL_PERSONAL is working on both.
I have used both the IDE and a MessageBox to see what value I 
get.

>> != S_FALSE
>
>That is the wrong way to check for errors. Anything other than S_OK is
>an error.  You should use the SUCCEEDED() macro instead:

Thanks - will change this.

I still have the problem that I cannot be sure to get the My 
Documents on a local drive, I do not want to (possibly) use a 
server location. What is the best option to use to find a 
location for the user data to be stored? Should I use Local 
Settings\Application Data ?

Thanks,
JB
Technical Details
Message-ID: <4658757e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4656efa1$1@newsgroups.borland.com> <46571424@newsgroups.borland.com> <46571711@newsgroups.borland.com> <4657317a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9503052ea4e0798c
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JB" <jo4508@yahoo.co.uk>
Sender: "JB" <jo4508@yahoo.co.uk>
Reply-To: "JB" <jo4508@yahoo.co.uk>
Subject: Re: Getting the location of My Documents
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 88.107.75.119     
References: <4656efa1$1@newsgroups.borland.com> <46571424@newsgroups.borland.com> <46571711@newsgroups.borland.com> <4657317a$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4658757e$1@newsgroups.borland.com>
Date: 26 May 2007 10:59:26 -0700
X-Trace: newsgroups.borland.com 1180202366 207.105.83.66 (26 May 2007 10:59:26 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail