Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No READ EVENTS in a COM dll
Message
From
27/06/1999 19:30:05
 
 
To
27/06/1999 17:34:14
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00234103
Message ID:
00234581
Views:
35
>Hi Ed:
> Actually I have no need of binding the Winsock control events to "local" code.
> The DataArrival event of the Winsock control fires a method in my class passing the data arrived. The problem is that while the Winsock control is waiting for data everything falls in an "idle" state that is causing my COM dll to return right away to foxisapi.dll
>
> I have used this class with the Winsock control in it many times and it works perfectly. When the class is included in a project that has a UI I have no problems since the UI will keep the program "alive" while the Winsock control is waiting for data. But inside a COM dll there is no UI and I can't use any event driven architecture.
>

The real problem is you're trying to do something that VFP COM objects really aren't suited to well; you'd be much better off writing the COM component in an event-driven mode, but VFP doesn't have an easy way to idle without eating the CPU alive or passing control back to foxisapi. I'd really look at a major redesign, since VFP isn't really a platform well-suited to this type of problem.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform