Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Icons
Message
 
To
17/02/1999 14:23:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Icons
Miscellaneous
Thread ID:
00188574
Message ID:
00188589
Views:
28
>When installing an app how do you transfer an icon to the desktop?
>
>Is there a copy command to do it?
>
>CG

You could simply copy the link file to the WINDOWS\Desktop\ file, but that won't work in all cases.

I wrote a DLL called lnkfiles.dll that available from the UT Download (under Win32 and other APIs). What you should do is call the DLL's GetDesktopFolder function to retrieve the location of the desktop, then create the shortcut link (CreateShellLink in the DLL). The file comes with a help file showing all the declarations and how to use them in VFP syntax. The CreateShellLink doc, however, contains some errata. It actually returns 1 if it succeeds.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform