Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap if control is registered before open dialogu
Message
 
To
27/09/2000 16:06:43
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00421747
Message ID:
00421765
Views:
17
>Hi!
>We are trying to check if an active x control is registered on a form so that we can run regsvr32 if it is not and avoid any error messages for the user. We are able to see trap the error - but not until after the form has started to load and the open dialogue box has appeared. Does anyone know a good way to tell if a control is not registered without alerting the user? (This situation should be rare so we don't want to use any api functions to check for this everytime - it would be wastefule).
>
>Thanks!

Got to use the API and still it may not be 100% reliable. You can for the ProgID under HKEY_CLASSES_ROOT in the registry. If it's there, the control is probably registered. However, there's being registered and being correctly registered. For example, the Common Dialog control on the target machine must be registered with the appropriate CLSID key and there's one for design time and one for run-time and they're not interchangable.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform