🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SHGetSpecialFolderPath wired problem..please help

#10921
From: Remy Lebeau (TeamB)
Date: Sun, 21 Mar 2004 21:23
15 lines
1465 bytes
"Martin C" <martinc@aol.com> wrote in message
news:405d9a1b@newsgroups.borland.com...

> when I try to delete the history folder contents, sometime it
> erases all of its contents, sometime not and sometime it erase
> some file and leave other files!

I do not see you checking return values when things fail.  You are also
never calling GetLastError() to find how why things are failing.  When
SetFileAttributes(), RemoveDirectory(), and DeleteFile() fail for any
reason, GetLastError() tells you exactly why.


Gambit
Technical Details
Message-ID: <405e05b0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <405d9a1b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2997fc081f04d0de
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-21 13:22:21 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <405d9a1b@newsgroups.borland.com>
Subject: Re: SHGetSpecialFolderPath  wired problem..please help
Date: Sun, 21 Mar 2004 13:23:50 -0800
Lines: 17
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: 67.22.138.253
Message-ID: <405e05b0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079903664 67.22.138.253 (21 Mar 2004 13:14:24 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail