Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is an OCX Registered On My Machine?
Message
De
28/04/1999 23:15:44
 
 
À
28/04/1999 22:01:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00213266
Message ID:
00213279
Vues:
29
Looking into the registry is good, but here is an easier method: try to instantiate the OCX and trap the error. The error code should be 1733.

on error wait window str(error())
ox = createobject("t.t.1") && Use the ProgID as param

should display 1733 because there's no t.t.1 registered on my computer.

Vlad

>I need to write a routine to determine if a given activeX control is registered on the workstation. I am looking at the FFC--VCX: Registry; Class: Registry; Method: IsKey. I think this is the right place to start. I found the documentation on the VCX but I still have a few questions:
>
>1. Is "IsKey" the right method to use for determining whether a given activeX control is registered?
>
>2. If so, what values should the developer specify for cKeyName and nRegKey? Would cKeyName be the name of the OCX?
>
>After I get this working, the next step will be to register the OCX if it is not already registered, assuming the OCX file can be found.
>
>Thanks, Chaim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform