🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Explorer type TreeView in Vista

#231
From: Remy Lebeau (TeamB)
Date: Wed, 16 Jul 2008 18:45
20 lines
1573 bytes
"Mehmet Caner" <mcaner40@hotmail.com> wrote in message 
news:487db2ae$1@newsgroups.borland.com...

> The following code fills TreeView1 component with the drives of the
> computer in Windows XP SP2 successfully, but failed in Vista.
> What's wrong with the code?

You did not say where it is failing.  Can you step through the code and find 
the particular line that is not working?

Have you tried using Vista's new KNOWNFOLDERIDs instead of CSIDLs?  In this 
case, CSIDL_DRIVES maps to FOLDERID_ComputerFolder.  Have a look at MSDN for 
more details:

    Known Folders
    http://msdn.microsoft.com/en-us/library/bb776911(VS.85).aspx


Gambit 
Technical Details
Message-ID: <487e421b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <487db2ae$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d1c1213ec3c3ef45
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <487db2ae$1@newsgroups.borland.com>
Subject: Re: Explorer type TreeView in Vista
Date: Wed, 16 Jul 2008 11:45:24 -0700
Lines: 22
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <487e421b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1216234011 207.178.157.90 (16 Jul 2008 11:46:51 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail