Re: [python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-08 Thread Thomas Heller
johnny loops schrieb: Thomas, thanks for your help. Everything seemed to work except when I needed to pass my com object to another com function to receive callbacks o=myComObjClass() otherDispatchedComObject.FunctionThatNeedsInterface(o, otherInputs) The other dispatched com object

Re: [python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-07 Thread johnny loops
Thomas, thanks for your help. Everything seemed to work except when I needed to pass my com object to another com function to receive callbacks o=myComObjClass() otherDispatchedComObject.FunctionThatNeedsInterface(o, otherInputs) The other dispatched com object was created using win32com,

[python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-06 Thread johnny loops
I have been pining over implementing what seems to be a VB custom com interface for some time now, so I thought I would post to the list to see if anyone could help. I have a com component on which I have run makepy. The function generates a couple of classes with functions and callbacks that

Re: [python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-06 Thread Thomas Heller
johnny loops schrieb: I have been pining over implementing what seems to be a VB custom com interface for some time now, so I thought I would post to the list to see if anyone could help. I have a com component on which I have run makepy. The function generates a couple of classes with

Re: [python-win32] Implementing custom com interface, passing it to another com object for callbacks

2006-12-06 Thread johnny loops
Thanks, these references are really helpful, and I think I understand a lot more of the path using comtypes. Continuing with my pseudo code example-- this is what I think I should do: -run GetModule() on the library, which should create the interface foo -Create a class implementing foo