Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole error : class does not have licence for being used
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01410836
Message ID:
01410844
Vues:
66
This message has been marked as the solution to the initial question of the thread.
>I suppose it is referred to the winsock class, but it is just my opinion.

Some ActiveX controls require license information. When you use an ActiveX control on a developer machine, this license information is stored in the OLE field of the VCX or SCX. Since there is not OLE field in a PRG file, you cannot use these controls in just a PRG file. As a simple work around, create a new visual class inheriting von OLEControl:
Create Class myCtrl of ActiveX as OleControl
Pick the ActiveX and save the class. Then replace the CREATEOBJECT() lines in your code with
loCtrl = NEWOBJECT("myCtrl","ActiveX.VCX")
Some controls cannot be instatiated this way. In this case you need to create a form class, add the ActiveX control to the form, replace the CreateObject() lines with the form and then use loForm.OleControl1 (or whatever you named it) instead of the existing reference.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform