Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use SHFileOperation function in VFP6
Message
From
23/04/2002 19:58:19
 
 
To
02/04/2002 16:38:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00639817
Message ID:
00648485
Views:
29
>Ed,
>I created a FLL for SHFileOperation. Though it generally succeeds, rarely it returns 'Cannot read from device' (1026?) error under XP (and .NET Release version installed). Retrying succeeds if done with a short delay. In many trials I couldn't make it to work consistently. Directly using CopyFile,MoveFile etc API it never fails (provided same access rights etc). It was working w/o failure under w2k and w9x (no .NET).
>I'll try to send the source to you hoping you can catch something I missed :)

Never got the source to look at, but once you're going to the trouble of cobbling up a bit of C++ code, why not create a COM object using an ATL wrapper rather than an FLL? It'd be more widely usable, and certainly at least as easy to use from VFP...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform