Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Icons
Message
 
À
17/02/1999 14:23:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Icons
Divers
Thread ID:
00188574
Message ID:
00188589
Vues:
27
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform