[IronPython] COM Interop - Dot net Interface Support in 2.0A4

Davy Mitchell daftspaniel at gmail.com
Fri Oct 5 23:50:09 CEST 2007


Sorry if I have missed this, but are COM Interfaces supported in
Interop? I guess this would be a DotNet interface at this stage?

import clr
clr.AddReferenceToFile("Interop.Microsoft.Feeds.Interop.dll")
from Microsoft.Feeds.Interop import *
t = FeedsManagerClass()
print t.RootFolder
u = t.RootFolder
print u
print u.TotalItemCount

results in....

<__ComObject object at 0x000000000000002B>
<__ComObject object at 0x000000000000002C>

SystemError: Could not load type 'Feeds.IFeedFolder' from assembly
'Feeds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

Thanks
Davy
-- 
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/
Twitter - http://twitter.com/daftspaniel
Skype - daftspaniel
needgod.com



More information about the Ironpython-users mailing list