Article View: borland.public.cppbuilder.nativeapi
Article #230Re: Explorer type TreeView in Vista
From: Bob Gonder
Date: Wed, 16 Jul 2008 17:30
Date: Wed, 16 Jul 2008 17:30
20 lines
1283 bytes
1283 bytes
Mehmet Caner wrote:
>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?
I would start by replacing the SUCCEEDED macro
with a function that reports what the error is.
> if (SUCCEEDED(SHGetDesktopFolder(&lpsf))) {
BOOL SUCCEEDED( HRESULT code )
{
if( code < 0 )
{
//report error;
return FALSE;
}
return TRUE;
}
Technical Details
Message-ID:
<sibs749l61m9jgs0fsmg097339kas1v4i2@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<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: Bob Gonder <none@nowhere.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Explorer type TreeView in Vista Date: Wed, 16 Jul 2008 10:30:45 -0700 Message-ID: <sibs749l61m9jgs0fsmg097339kas1v4i2@4ax.com> References: <487db2ae$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.147.31 X-Trace: newsgroups.borland.com 1216229444 67.77.147.31 (16 Jul 2008 10:30:44 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail