Hello fellows,
I'm playing around with file operations (copy, delete, move) using SHFILEOPSTRUCT.
The names of the files to delete are displayed in a listbox. As long as the user selects only one filename, there is no problem. But what if a multiple selection will take place?
Two questions:
1. How to delete a bundle of files in 1 run? According to Win32.hlp this should be possible, but either I don't understand Microsoft's explanation or this explanation fails. Quote: "pFrom - Pointer to a buffer that specifies one or more source file names. Multiple names must be null-separated. The list of names must be double null-terminated."
2. How to remove the deleted files from the array list? That can only be done if you know the element's relative position in the listbox array, but how to retrieve it?
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
[This message has been edited by Egbert Zijlema (edited February 07, 2001).]
I'm playing around with file operations (copy, delete, move) using SHFILEOPSTRUCT.
The names of the files to delete are displayed in a listbox. As long as the user selects only one filename, there is no problem. But what if a multiple selection will take place?
Two questions:
1. How to delete a bundle of files in 1 run? According to Win32.hlp this should be possible, but either I don't understand Microsoft's explanation or this explanation fails. Quote: "pFrom - Pointer to a buffer that specifies one or more source file names. Multiple names must be null-separated. The list of names must be double null-terminated."
2. How to remove the deleted files from the array list? That can only be done if you know the element's relative position in the listbox array, but how to retrieve it?
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
[This message has been edited by Egbert Zijlema (edited February 07, 2001).]
Comment