Article View: borland.public.cppbuilder.nativeapi
Article #416Re: Problem with Vista
From: Remy Lebeau (TeamB)
Date: Tue, 08 Apr 2008 16:40
Date: Tue, 08 Apr 2008 16:40
15 lines
1366 bytes
1366 bytes
"patrickartaud" <patrickartaud@aidedecision.com> wrote in message
news:47fb4400$1@newsgroups.borland.com...
> if(!SHGetSpecialFolderLocation(0,CSIDL_APPDATA,&List))
> {
<snip>
> }else{SHGetPathFromIDList(List,Path);
> ChVista=Path+AnsiString(societe);}
If SHGetSpecialFolderLocation() fails, you are still calling
SHGetPathFromIDList(), passing it an invalid ITEMIDLIST. Don't do that.
Gambit
Technical Details
Message-ID:
<47fba024$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<47fb4400$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,272b7ea1c987d26 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: <47fb4400$1@newsgroups.borland.com> Subject: Re: Problem with Vista Date: Tue, 8 Apr 2008 09:40:56 -0700 Lines: 17 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: <47fba024$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1207672868 207.178.157.90 (8 Apr 2008 09:41:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail