Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically creating winsock controls
Message
From
13/12/2002 02:58:13
Eyvind W. Axelsen
Profdoc Norge As
Oslo, Norway
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Dynamically creating winsock controls
Miscellaneous
Thread ID:
00732565
Message ID:
00732565
Views:
101
Hi.

I am creating several winsock objects in code (for example with statements like Createobject("mswinsock.winsock.1")), and on my development machine this works great. However, on machines that do not have vfp installed, I get a "Class not licensed" error. I have searched google, and found that this seems to be a known problem in vfp, and the suggested workaround would be to add the control to a form first. I would really like to avoid that, as I am creating several controls at run-time, and would like to avoid the extra overhead, as well as kludgy code, involved with using a dummy form.

Someone else suggested that I should subclass the control, but when I try to create an object from my subclass in code (or in the command window), I get an error message stating that the "Object class is invalid for this container". I guess it needs to be added to a form or container of some kind, but I am holding my references to winsock objects in an array in one of my biz-objects.


Any ideas?

Regards,

Eyvind.
Next
Reply
Map
View

Click here to load this message in the networking platform