>I used the code below on windows ME
>
>* Declare the function
>DECLARE INTEGER CreateShellLink IN LNKFILES.DLL;
>STRING @lpzLinkFileName, STRING @lpzExeFileName
>
>lnErrorCode = CreateShellLink("c:\windows\desktop\dental.lnk","c:\dent3\dental.exe")
>
>*******************
>
>Can I use this code also for windows XP?
You'd probably be better off getting the user's desktop first to determine the location. Under XP, this can be done using the WScript.Shell object. Take a look at the series of articles that the late Ed Rauh and I did on the Windows Script Host. It's available on-line beginning with the September, 2000 issue of the VFUG newsletter (
www.vfug.org). The Shell object was covered in the October issue and covers this subject.
George
Ubi caritas et amor, deus ibi est