>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')