General information
Category:
ActiveX controls in VFP
Title:
Dynamically creating winsock controls
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only