Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugging an OLE service
Message
De
23/08/2007 13:20:14
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01249928
Message ID:
01249950
Vues:
18
Ok, using your code with the SETUP Proc change (not sure if you changed my class definitions other than that, but I'm using mine), and I'm getting an error that OBJECT is not found.
	PROCEDURE DMSWinsockControlEvents_ConnectionRequest(requestID AS NUMBER) AS VOID HELPSTRING "Occurs when a remote client is attempting to connect"

		#DEFINE sckClosed 0

		IF THIS.OBJECT.State <> sckClosed
			THIS.oSock.OBJECT.CLOSE
		ENDIF

		*!* Accept the request with the requestID
		*!* parameter.
		THIS.oSock.OBJECT.ACCEPT(requestID)

	ENDPROC
>>Very quickly because there is no Setup procedure. Did you have some other error?
>
>Nope, the code works fine for me I got this printout:
>
>
>Event handler succeeded
>Server State 2
>Event handler succeeded
>Connected
>Connection accepted580
>Client State 7 Elapsed time: 0.165
>This is a test.
>
>
>which looks ok
>
>
>[Update] Oh! That is the problem, where do you have the eventhandler? Did you check is returning .T.??
>
>[Update 2] I see you did not read my message Re: OLE Exception code using my class Thread #1249645 Message #1249699
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform