>I'm putting this in my DLL and expecting that I can then reference oSock from another app or command line, but I'm getting an error that I can't do this in a DEFINE. I'm not sure why I have such a block with all this, but I do. I was able to get Craig's math class to work, but that's because he wrote it. Left on my own, I got nothing.
>
>
>DEFINE CLASS EMPS_Out_Class AS SESSION OLEPUBLIC
>
> oSock = CREATEOBJECT("MSWinsock.Winsock.1")
>
>ENDDEFINE
>
Can you define oSock as a property and instantiate it later in the Init
DEFINE CLASS EMPS_Out_Class AS SESSION OLEPUBLIC
oSock = null
procedure Init
this.oSock = CREATEOBJECT("MSWinsock.Winsock.1")
endproc
ENDDEFINE
If it's not broken, fix it until it is.
My Blog