S
Simon Jefferies
Hello,
I am trying to delete a file using SHFileOperation, but get the error code
1026.
Code snippet:
SHFILEOPSTRUCT fo;
ZeroMemory(&fo, sizeof(fo));
fo.fFlags = FOF_ALLOWUNDO | FOF_FILESONLY;
fo.wFunc = FO_DELETE; // delete contents of this folder
fo.pFrom = szFilename;
int nSuccessCode = SHFileOperation(&fo);
The file does exist and have tried with other files/paths etc but these do
not work.
Any ideas?
TIA
Simon Jefferies
I am trying to delete a file using SHFileOperation, but get the error code
1026.
Code snippet:
SHFILEOPSTRUCT fo;
ZeroMemory(&fo, sizeof(fo));
fo.fFlags = FOF_ALLOWUNDO | FOF_FILESONLY;
fo.wFunc = FO_DELETE; // delete contents of this folder
fo.pFrom = szFilename;
int nSuccessCode = SHFileOperation(&fo);
The file does exist and have tried with other files/paths etc but these do
not work.
Any ideas?
TIA
Simon Jefferies