Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows 2000
Message
De
01/08/2000 17:32:07
 
 
À
01/08/2000 16:42:47
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00399044
Message ID:
00399614
Vues:
17
>Barbara,
>I found one of the problems. When my app first starts it checks to see if MSProject is installed. I use the following code
>cOptPath = ""
>DIMENSION aCLSIDs[1]
>
>SET CLASSLIB TO registry.vcx ADDITIVE
>oReg = CREATEOBJECT("Registry")
>
>*Grab array of CLSIDs
>IF oReg.EnumOptions(@aCLSIDs,cOptPath,"",.T.) # 0
> RETURN .F.
>ENDIF

Geesh, man, this is total overkill. Try just checking for the _ProgID_ directly, under the HKCU. No need to load every progid into an array.

(BTW, a CLSID, is not a ProgID). "MSProject.Application" is a ProgID.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform