Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No READ EVENTS in a COM dll
Message
From
25/06/1999 18:47:35
 
 
To
25/06/1999 15:02:36
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00234103
Message ID:
00234255
Views:
28
>Hi:
>
> I made a class based on form that has a MSWinsock control in it.
> Using the winsock control I connect to a SMTP server to send emails.
> It worked flawlessly until I tried to use it in a COM dll.
>
>
>I tried to use READ EVENTS but READ EVENTS does not seem to work
>inside the COM dll.
>

READ EVENTS is the command that tells VFP to go into a wait state ready for USER input. It relays processing control to the UI. VFP COM dll cannot have a UI. The Vfp6r.dll (the VFP runtime for single threaded COM servers) probably responds to a READ EVENTS by jumping out of the method, because a REASD EVENTS doesn't belong in a COM dll.

If you want your COM server to wait and poll Winsock, just put in in a loop that checks the ready status of the WinSock control.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform