Re: [python-win32] Creating a TLB for PythonCOM server

2010-12-17 Thread Mariano Reingart
Thanks very much Mark, pippo_server.py was exactly what I needed. I was missing defining the _typelib_guid_, _typelib_version_, _com_interfaces_ and then registering the type library with pythoncom.LoadTypeLib and pythoncom.RegisterTypeLib. VB doesn't complain now, all seems working fine, and wit

Re: [python-win32] Creating a TLB for PythonCOM server

2010-12-17 Thread Mark Hammond
You should probably check out the "pippo" examples in the win32com\test directory for an example of associating the python COM object with the typelib. HTH, Mark On 16/12/2010 12:08 PM, Mariano Reingart wrote: Hello I'm trying to create a type library (TLB) using MIDL.EXE for a PythonCom se

[python-win32] Creating a TLB for PythonCOM server

2010-12-16 Thread Mariano Reingart
Hello I'm trying to create a type library (TLB) using MIDL.EXE for a PythonCom server, but I don't fully understand the brief MSDN ducumentation: http://msdn.microsoft.com/en-us/library/ms690150(v=VS.85).aspx I've been able to create the TLB file, but when using it in VB, I get a Run-time error '