Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event notification in WinFaxPro & VFPCom
Message
From
21/03/2000 07:07:14
 
 
To
21/03/2000 03:40:55
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00348223
Message ID:
00348244
Views:
25
>Hi All,
>
>I'm trying to monitor events as they happen in WinFax Pro. I'm trying to use VFPCom.ExportEvents so that I can fiddle around with the exported code where I need to. This is what I've tried:
>
>oSendObj = CreateObject("WinFax.SDKSend")
>oVFPCOM = CreateObject("VFPCOM.ComUtil")
>lncode=oVFPCom.ExportEvents(oSendObj,"x.prg")
>
>Unfortunately ExportEvents returns -1000 "Failed to get outgoing interface"
>
>Does anyone know what this means?
>

ExportEvents could not retrieve any exposed events in the IDispatch interface in the COM Object; IOW, there are no events available to hook (it's possible that an embedded object inside has some, but you'd have to have a reference to the embedded object to look at that interface.) You can duplicate this by trying to run ExportEvents against any COM object with no exposed events, like VFPCOM.COMUtil itself:

oVFPCOM= CREATEOBJ('VFPCOM.ComUtil')
? oVFPCOM.ExportEvents(oVFPCOM,'x.prg')
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
Reply
Map
View

Click here to load this message in the networking platform