Article View: borland.public.cppbuilder.nativeapi
Article #13881Re: SpecialFolderLocation!
From: Remy Lebeau (TeamB)
Date: Sun, 14 Sep 2003 21:46
Date: Sun, 14 Sep 2003 21:46
38 lines
2349 bytes
2349 bytes
"Safari" <Safari@alloymail.com> wrote in message
news:3F649347.7090500@alloymail.com...
> I want this exmaple in Win9X (not WinNT)
> This sample works correctly in WinNT.
I do not think you listened to me earlier. Several of the values you are
trying to obtain *are not supported* under Win9x. I can tell you for a fact
that your code works just fine as-is in general under Win9x. I just tried
it and most of them worked fine for me. The only ones that did not work
were CSIDL_PROGRAM_FILES, CSIDL_SYSTEM, and CSIDL_WINDOWS. But that is ok
because they are not expected to work to begin with, as they are only for
newer OSs. For those values, you *must* use alternative approaches for
older OSs.
For CSIDL_PROGRAM_FILES, you will have to read the following Registry key
manually:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion
"ProgramFilesDir"="C:\Program Files"
"ProgramFilesPath"="C:\Program Files"
For CSIDL_SYSTEM, you will have use GetSystemDirectory() instead.
For, CSIDL_WINDOWS, you will have to use GetWindowsDirectory() instead.
I know that you don't want to use those, but those are the only choice for
systems that *do not support* the newer functionality, plain and simple.
Gambit
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
Technical Details
Message-ID:
<3f64e17d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3F649347.7090500@alloymail.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-14 14:51:41 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3F649347.7090500@alloymail.com> Subject: Re: SpecialFolderLocation! Date: Sun, 14 Sep 2003 14:46:19 -0700 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f64e17d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1063575933 207.175.226.26 (14 Sep 2003 14:45:33 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail