Article View: borland.public.cppbuilder.nativeapi
Article #9813Re: SHBrowseForFolder
From: Hans Galema
Date: Tue, 08 Jun 2004 21:50
Date: Tue, 08 Jun 2004 21:50
22 lines
1547 bytes
1547 bytes
Gary Setter wrote:
> FWIW, this is what I use
That is worth a lot. Thanks.
> LPMALLOC ppMalloc;
> HRESULT result = SHGetMalloc(&ppMalloc);
> if (SUCCEEDED(result) && ppMalloc) {
> ppMalloc->Free(items);
> I'm not sure about how I free memory. Suggestions would be wellcome.
Did you try Codeguard for that already ?
You could omit the quoted lines by one statement:
CoTaskMemFree(items);
Thanks.
Hans.
Technical Details
Message-ID:
<40c6348f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40c56f71$1@newsgroups.borland.com> <40c576e3$1@newsgroups.borland.com> <40c5975f@newsgroups.borland.com> <40c5a181$1@newsgroups.borland.com> <40c5bb67@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,179ca2994416d9ea X-Google-Attributes: gid10cc67,public Date: Tue, 08 Jun 2004 23:50:54 +0200 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: SHBrowseForFolder References: <40c56f71$1@newsgroups.borland.com> <40c576e3$1@newsgroups.borland.com> <40c5975f@newsgroups.borland.com> <40c5a181$1@newsgroups.borland.com> <40c5bb67@newsgroups.borland.com> In-Reply-To: <40c5bb67@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <40c6348f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086731407 129.125.201.248 (8 Jun 2004 14:50:07 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail