Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which is better: WSH or API?
Message
 
À
05/02/2004 08:10:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00874384
Message ID:
00874397
Vues:
21
>Hello,
>
>I have noticed, on several threads, that a solution might be presented as BOTH a WSH function and an API function. What are the differences between WSH and API function calls? Where, when, and why would I choose one over the other?
>
>Thanks
>
David,

In some cases you do have a choice. In others, there are things that the WSH can do easily that you'd be very hard put to implement using API calls in VFP. For example, creating a short-cut link.

In some cases, using the WSH rather than the API can save you a tremendous amount of code.

The WSH was introduced in Win98 as an optional component. It did install by default. Beginning with Win2K it's an important part of the OS.

I'd suggest that you read the series of articles that my friend the late Ed Rauh and I wrote for the VFUG newsletters. They're available on-line at www.vfug.org and began in the September, 2000 issue. You might want to look at the post-script I wrote to the series that appeared, I think, in May, 2001. This latter article dealt with the security issues.
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