Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obviously I still don't understand this stuff...
Message
 
 
To
15/08/2007 18:26:13
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01248389
Message ID:
01248391
Views:
28
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform