Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBI Tech Listbar in Toolbar
Message
From
30/05/2018 07:41:24
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01660432
Message ID:
01660446
Views:
50
>>Find out the CLSID of the control, and before instanciating it, go to the registry and confirm that it is registered, otherwise skip the instanciation.
>
>Thank you for your suggestion. I have two concerns about this approach:
>1. I am not comfortable getting into the registry from the VFP application (actually never done it)
>2. This would have to be done on every start of the application. Which could slow down the start. Or, even worse, if the code does not find the registry, it would create false problem.

This is not messing with the registry, you're only reading it. So you wouldn't be calling any API which requires elevated privileges.

>I was hoping that the check for ActiveX registration could be done with Try/Catch.

Sure it can, if you can wrap it around a createobject(). If it's not added programmatically but, as ActiveX often are, in the visual class editor, you can only wrap the whole toolbar, which is useless.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform