>Didn't work. I created a Class Library and put the control in it on my development computer and now a WinSock that was connecting with _VFP.AutoYield set to TRUE and using DOEVENTS, now never can get a connect state of 7. This is baffling. When I was not using the OLEControl on the form and just using CREATEOBJECT(...) it worked on my computer and not the client computer..due to the license issue. I'm out of ideas. Any ideas?
Create a subclass of olecontrol with winsock as its oleclass. Then createobject() that.
When you use createobject with the oleclass directly, it counts as "open for development". If it's in a saved class, doing a createobject() on that class counts as runtime, and then you shouldn't be getting that message.