[python-win32] Casting to interface from different typelib?

2009-01-09 Thread Ben Gordon
Any help here would be appreciated. But I hope I don't kill my odds by having redacting the names of all the (proprietary) libraries involved. (Or by the fact that I'm new to COM.) Anyhow, as part of a collaboration, I'm building a win32 application that uses COM to interact with several

Re: [python-win32] imp.load_module problem

2009-01-09 Thread Adam Pletcher
We don't appear to have any .assembly files, even after building Python or pywin32, so I think I'm missing something. Could you elaborate a bit, Mark? Thanks in advance. - Adam On Thu, Jan 8, 2009 at 5:44 PM, Mark Hammond skippy.hamm...@gmail.com wrote: On 9/01/2009 7:46 AM, Adam Pletcher

Re: [python-win32] Casting to interface from different typelib?

2009-01-09 Thread Mark Hammond
On 10/01/2009 12:27 AM, Ben Gordon wrote: Try something like: #Now, the cast mod = gencache.GetModuleForTypelib(typelibB_CLSID,0x0,1,0) pB = mod.InterfaceB(pA) pB = mod.InterfaceB(pA.QueryInterface(IID_B, pythoncom.IID_IDispatch)) CastTo fails because The interface does not appear in the

Re: [python-win32] imp.load_module problem

2009-01-09 Thread Mark Hammond
On 10/01/2009 4:59 AM, Adam Pletcher wrote: We don't appear to have any .assembly files, even after building Python or pywin32, so I think I'm missing something. Could you elaborate a bit, Mark? Oops - I misspoke - you are looking for a .assembly file - but it comes with VS rather then being

[python-win32] Quiet Install Available?

2009-01-09 Thread Lewis, Jeffrey G
I am working with Python 2.5.2 and pywin32-212.win32-py2.5.exe. I figured out how to install Python 2.5.2 so that no user interaction is required. Are there command line options available for pywin32-212.win32-py2.5.exe so that it will just go ahead and do the install using all the defaults