Information générale
Catégorie:
Contrôles ActiveX en VFP
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement