Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dealing with and ActiveX control at run time?
Message
From
20/04/2007 09:26:47
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01218239
Message ID:
01218246
Views:
14
>I often get error reports from customers pointing to file COMDLG32.OCX not being installed on their computer.
>
>I am thinking that maybe I can deal with this the following way:
>
>Place a copy of this file (COMDLG32.OCX) in the application directory. Then, at run time, when user goes to the part of the application using the COMDLG32.OCX, first check if it is loaded, and if not, load it on-the-fly from the application directory.
>
>But I don't know how to check if this ActiveX is loaded on the PC. How would I do it?
>
>Thank you in advance for any suggestions.

Try and create an instance of the control using CREATEOBJECT() and do this from inside a TRY CATCH ENDTRY construct. Then you can test whether its possible to instantiate the control or not and take appropiate action.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform