>Hi George!
>You dll is great, but I have some problems... :)
>Please, help me.
>FindDesktopFolder is returning an -53 error code, if I ignore this error, the shortcut is created, but when I try to set the icon I receive a -3 error code.
>What I'm doing wrong? (Win XP an VFP 7 SP1)
>
>Tks,
>
>Emerson Santon Reed
>emerson@folhamatic.com.br
Emerson,
I've never tested the DLL under XP and don't have a box to test it on.
The FindDesktopFolder function uses lstrlen() to determine the result returned. I don't know if this might enter into it, but if Unicode is involved, that might be the source of the problem.
The -3 indicates that the set icon routine, that the file's location couldn't be resolved.
If you could post the code, and the results from FindDesktop folder, it might help unravel this.
George
Ubi caritas et amor, deus ibi est