Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is an OCX Registered On My Machine?
Message
From
28/04/1999 23:15:44
 
 
To
28/04/1999 22:01:08
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00213266
Message ID:
00213279
Views:
30
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform