On 8/2/07, sccs cscs <[EMAIL PROTECTED]> wrote:
>         # HERE IS THE ERROR: The theIRPModelElement is a "IRPType" which is
>         # a specialization of a IRPModelElement, but Python continue to see
> it like an IRPModelElement

Take a look at the win32com.client.CastTo() function.  You probably
want something like:

theIRPModelElement = win32com.client.CastTo(theIRPModelElement, 'IRPType')

I'm not sure how you would do it if you don't know ahead of time what
subclass you're going to get back.

-- 
Jerry
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to