Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ole error : class does not have licence for being used
Message
 
To
08/07/2009 06:52:51
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01410836
Message ID:
01410844
Views:
65
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform