Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No READ EVENTS in a COM dll
Message
From
27/06/1999 05:14:57
 
 
To
27/06/1999 01:23:38
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00234103
Message ID:
00234448
Views:
37
>I downloaded VFPCOM but can't see the use of it to solve my problem.
>The only thing I found that could be of use to me is the BindEvents() function, but as I understood from the docs it is used to bind an event in an automation server to a method on my class. The Winsock control is not an automation server (am I right?) and even if it was the problem would persist as the Winsock control would be idle while waiting for data.
>

No, an ActiveX control is an OLE Automation Server, and there may be events in the Winsock control that can't be wrapped directly with VFP code without the use of VFPCOM's BindEvents methods. You can create an instance of the Winsock object independent of a form. Unless there are events that are a part of the Winsock object that you want to wrap with VFP code, VFPCOM isn't going to do anything in particular for you. If there are events that are a part of the Winsock control that you wish to have trigger VFP code, you can construct the necessary wrapper from the ExportEvents skeleton class, and use that to create a VFP native object that is bound to an instance of the Winsock control by an instance of VFPCOM.

>I'm about to give up on this one (something I'm not use to <g>).
>These are the times when I really wish my customer was using Linux with Apache or anything else but NT/IIS. ;)
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