AFAIK, it always returns 1223 when there's an error. At least I never got anything else returned.
You can change
NumToLONG(lnProgressTitle )
NumToLONG(0)
and remove all lines related to lcProgressTitle. It's leftover from my attempt to use custom progress message. However it's working code, so I don't know why it doesn't work for you as is.
>Hi Sergey,
>
>I've tried your code. First of all, I'm using VFP6, so instead of _screen.hWnd I put GetActiveWindow(). Is it Ok?
>
>Secondly, it returns 1223 (no visual error messages). Where can I find, what does each error code mean?
>
>Thanks in advance.
>
>UPDATE. Once I changed the code to the original NumToDWORD code, it worked in sample I was trying... Progress title was ignored, though...
>
< snip >
--sb--