Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dealing with and ActiveX control at run time?
Message
De
20/04/2007 09:26:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01218239
Message ID:
01218246
Vues:
20
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform