>Hi,
> Thank you for reply. However, I don't understand with that too. Could you explain it in sample code....using SHFileOperation WINAPI.
You can't get at C++/OLE calling convention .DLLs directly in VFP; you'll need to write a wrapper .DLL or an .FLL to let FoxPro pass things as required to these types of APIs.
I'm afraid I don't sit up and beg or roll over and play dead on demand, either - you'll have to do some work yourself. I have no compelling reason or desire to write code for that particular API, either, since all the aspects of the API that I need are available through the Scripting.FileSystemObject OLE automation object of the Windows Scripting Host, which has been written up to death in various VFP publications over the past year or so, as well as discussed here on UT , and described in detail in the MSDN docs, available by subscription, as a part of the full Visual Studio package, or on-line through Microsoft's MSDN OnLine service.
The code in my classes describes the process of building, passing and translating a C-style structure in detail. Look at the structures I define, and compare what's done there to what you need to do.
Good luck.