Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CopyFile, Win98 and 64K limit?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00568500
Message ID:
00568808
Views:
23
Hey Larry,

You were definitely on the right track. I WAS able to use CopyFile to copy one of the large files from one directory to another. It seems as though the problem lies in copying the file to the queue.

I'm trying to find out what error message is being returned but I'm having some dificulty. I'm not able to get GetLastError() to return anything but a 0. I do the following:

declare integer CopyFile in Kernel32.dll string @source, string @dest, integer fail
declare integer GetLastError in Kernel32
* Also replaced above line with:
* declare integer GetLastError in Win32API

? CopyFile("c:\failfile","c:\temp\rodd.tst",0) // Where failfile is non-existant file ... just to force error
* Above command returns 0 - fail

lnError = GetLastError()

? lnError // Always displays 0

Can you help me in this? What am I doing wrong?

Rodd
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform