views:

224

answers:

0

Hi.

I'm doing .NET interop via a wrapper assembly generated by tlbimp. Anyway, this thirs party COM object has a method that returns a referance to another 3rd party typelib - actually, DAO350. Calling the method that returns this causes IronPython to fail, presumably because it can't find a type to match it to.

Any ideas as to how I can get this object? DO i need to generate another interop assembly for it, and then cast the COM return value?

This is a partial traceback I get:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
EnvironmentError: System.Runtime.InteropServices.COMException (0x800A0CB3): Oper
ation is not supported for this type of object.
   at Microsoft.Scripting.ComRuntimeHelpers.CheckThrowException(Int32 hresult, E
xcepInfo& excepInfo, UInt32 argErr, String message)
   at CallSite.Target(Closure , CallSite , ComObject )
   at CallSite.Target(Closure , CallSite , Object )
   at CallSite.Target(Closure , CallSite , Object , CodeContext )
   at Microsoft.Scripting.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite
 site, T0 arg0, T1 arg1)
   at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame
frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
....

related questions