mperlsyd has asked for the wisdom of the Perl Monks concerning the following question:

Greetings, Recently I was using Win32::OLE module to access a third-party dll. The dll is registered with regsvr32.exe so its definitely in Windows registry and I could see the interfaces and properties through oleviewer.exe. The issue i am facing - for the last few days! - is that i could easily access the methods within the DLL however for the life of me, I couldn't get any events to work. If I write the follownig code: Win32::OLE->WithEvents($myObj,\&captureEvent) I get an error message saying - "No Such Interface Supported". And if i specify an interface that i can see in Oleviwer.exe - e.g Win32::OLE->WithEvents($myObj,\&captureEvent,'IDataEvents'); I get an error message saying - "Not Implemented". Any pointers as to what could be wrong? I have been searching for an answer on the Net for a while but wasn't able to find any hence any help would be greatly appreciated. Regards

Replies are listed 'Best First'.
Re: Win32::OLE Events
by Anonymous Monk on Apr 30, 2010 at 06:58 UTC
      Thanks for your reply. I tried using the Event Interface name as suggested but still get the same error message of "Not Implemented". The event interface name is registered properly (can see it in oleviwer/regedit) but not sure why i am not able to hook up the events. Any suggestions? Regards
        Whats the error number?