Article View: borland.public.cppbuilder.nativeapi
Article #3529Re: Crazy CopyFile
From: Hans Galema
Date: Thu, 08 Jun 2006 07:16
Date: Thu, 08 Jun 2006 07:16
17 lines
1416 bytes
1416 bytes
Babak wrote:
> I had wrote some CopyFile functions in my software
<help>
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
To get extended error information, call GetLastError.
</help>
> CopyFile("profiles.DB","c:\\Portable\\profiles.DB",true);
What is the returnvalue if CopyFilefails ? And what does GetLastError
report ?
I would suggest an absolute path in the first parameter too.
Hans.
Technical Details
Message-ID:
<4487d003@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4487c9b8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2704f07ba1df9321 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 08 Jun 2006 09:16:46 +0200 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Crazy CopyFile References: <4487c9b8@newsgroups.borland.com> In-Reply-To: <4487c9b8@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <4487d003@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1149751299 145.98.201.248 (8 Jun 2006 00:21:39 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail