>>>>May be it depends on how cSource and cDestination are defined? In the sample, I tried, I use:
>>>>c:\DataEntry\*.* and c:\MyNewDir It works with the original code. Once I changed my real code to destination equals to the directory name, it also worked...
>>>>
>>>>I have no other ideas...
>>>
>>>According to the error lookup utility that comes with VS, 1223 means that the user canceled the operation.
>>
>>Thanks, George. I can not cancel the operation, since it was not started yet... :) Still, thanks a lot.
>
>Try calling GetLastError() if the return value is non-zero
It returns 127 ("The specified procedure could not be found."), if I call it with MyDir\*.* It also shows an error dialog...
BTW, how can I expand Error Message myself in code, without using Error lookup utility?
If it's not broken, fix it until it is.
My Blog