Wednesday, June 11, 2008

IFileOperation replaces SHFileOperation on Vista

Today I got some reports from users that part of our file handling functions gave irregular results. On my development machine (a Windows 2003 Server) all was well and I could not replicate the problems.


After some digging into these issues I found a couple of postings (this one in de MSDN amongst others) about a new interface (IFileOperation) in Vista that replaces the SHFileOperation function.


Now, most of my code works just fine, but I have some specific problems with overwriting files that already exist. Some get overwritten, others don't. I suspect the SHFileOperation functions that (apparently) are still availble under Vista aren't quite backwards compatible.


Luckily I have created some wrapper functions in my code around the SHFileOperation functions, so it will be fairly easy to implement the IFileOperation method of Vista. But, being under pressure as always, this wasn't what I was waiting for right now :-o.



If I encounter any special issues I will let you know.



Bye,

Bart

No comments: