Article View: borland.public.cppbuilder.nativeapi
Article #5460Re: How Getting ptah of <C:\Documents and Settings\alluser> folder
From: Remy Lebeau (TeamB)
Date: Thu, 18 Aug 2005 00:34
Date: Thu, 18 Aug 2005 00:34
25 lines
2090 bytes
2090 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:4303cbab@newsgroups.borland.com... > Hi Sam/Remy here is what I did. I looked for the version of the O/S > if a "better NT" version exists, I use CSIDL_COMMON_APPDATA > else I use CSIDL_PROGRAMS Rather than using the OS version, you should be using the Shell32.dll version instead, since it is the one that actually implements the SHGetSpecialFolder...() functions, and its version can be changed separately then the OS version. CSIDL_COMMON_APPDATA can work on NT4 and Win95 if a sufficient version of IE is installed. > strcat(s, "Documents and Settings\\"); > strcat(s, "All Users\\"); > strcat(s, "Application Data"); That path does not apply to Win9x machines. There is no "Documents and Settings" folder for the OS to use. I mentioned the Windows folder because that is where a lot of programs I have installed have all placed their files, so why are you breaking out of the norm by doing something different? Gambit
Technical Details
Message-ID:
<4303d77e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43033672@newsgroups.borland.com> <430381af$1@newsgroups.borland.com> <430396e0@newsgroups.borland.com> <4303cbab@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6638340ca3c38f1c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43033672@newsgroups.borland.com> <430381af$1@newsgroups.borland.com> <430396e0@newsgroups.borland.com> <4303cbab@newsgroups.borland.com> Subject: Re: How Getting ptah of <C:\Documents and Settings\alluser> folder Date: Wed, 17 Aug 2005 17:34:01 -0700 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4303d77e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124325246 68.69.17.41 (17 Aug 2005 17:34:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail