Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obviously I still don't understand this stuff...
Message
 
 
À
15/08/2007 18:26:13
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01248389
Message ID:
01248391
Vues:
30
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform