🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Delete File

#448
From: Remy Lebeau (TeamB)
Date: Wed, 16 Apr 2008 20:30
14 lines
1349 bytes
"bar" <shaikakbar250281@yahoo.co.in> wrote in message 
news:480642de@newsgroups.borland.com...

> DeleteFile("C:\\Program Files\\MyProgram\\a.jpg");
>
> The above works in XP. In Vista it doesn't work, the
> user is administrator. How to resolve the issue.

Did you verify that the file actually exists?  What does DeleteFile() 
actually return?  If FALSE, what does GetLastError() return?


Gambit 
Technical Details
Message-ID: <4806635f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <480642de@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,afa23fc7a34d3bb6
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: <480642de@newsgroups.borland.com>
Subject: Re: Delete File
Date: Wed, 16 Apr 2008 13:30:45 -0700
Lines: 16
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: <4806635f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208378207 207.178.157.90 (16 Apr 2008 13:36:47 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail