>
Not sure what it means to "...add an instance of the class at run-time instead of adding the control.">
>It means that in the Visual Class Designer, Create a Winsock subclass by creating a class based on the OLEcontainer control and inserting the winsock control ( C:\WINNT\System32\mswinsck.ocx ).
>
>Then, instantiate your custom winsock class using CREATOBJECT().
I'm doing mine in code. It's a non-visual service EXE. I currently use the following, but we are getting licensing errors on some boxes. What do I need to change, per the MSN help I posted, to fix this?
DEFINE CLASS EMPS_Class AS SESSION OLEPUBLIC
IMPLEMENTS DMSWinsockControlEvents IN "mswinsck.ocx"
lGarbageCollected = .F.
oSock = NULL
PROCEDURE INIT
THIS.oSock = CREATEOBJECT("MSWinsock.Winsock.1")
ENDPROC