Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mabry's SocketX OCX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Mabry's SocketX OCX
Divers
Thread ID:
00314472
Message ID:
00314472
Vues:
166
Hi

I just downloaded a copy of the socketx OCX control from Marbry Software. I am trying to use it inside a Visual Foxpro 6.0 application. I am having problems setting up a simple UDP server program. The program breaks when it tries to do a ReceiveFrom() call. I get the following error message:

OLE IDispatch Exception code 0 in Marbry.SocketxObj.1:
Unrecognized error...


Here is the code:


Public Server
Server = createobject("Mabry.SocketxCtl.1")

WITH Server
*-- Set socket type to UDP datagram
.SocketType = 1

*-- Set the blocking mode
.Blocking = .F.

*-- Disable events
.EventMask = -1

*-- Setup the local address and port
.LocalAddress = "10.129.12.159" && My local machine ip
.LocalPort = 3636

*-- Create and bind our socket
.create()
.bind()

*-- Print out socket state
?.State

*--
.ReceiveFrom() && **** Program breaks right
ENDWITH

Is there anything I am doing wrong?

Thanks

Emmanuel Suarez
Datek Online
Emmanuel Suarez
Datek Online
System Developer
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform