S
SS Hares
Hi,
I'm encountering an issue where the InvokeTypes method is returning
None and I'm unable to Dispatch a particular COM object from
DMCoreAutomation.dll. Everything works fine except for method
GetItemFields.
Using Python 2.4.2, pywin32 build 209.
Here is some example code (I can provide full source code if needed):
<win32com.gen_py.57E95830-6C61-4EB4-B18D-B3CE87313C28x0x1x0.IItemStoreFiles
instance at 0x18300760><win32com.gen_py.57E95830-6C61-4EB4-B18D-B3CE87313C28x0x1x0.IColorItem
instance at 0x18670816>
df here is None. Other IColorItem methods work correctly.
Here is the relevant bit from the makepy generated code:
def GetItemFields(self):
"""Get (DB parsed) item fields (returns DB parsed field interface)"""
ret = self._oleobj_.InvokeTypes(414, LCID, 1, (9, 0), (),)
if ret is not None:
ret = Dispatch(ret, 'GetItemFields', None, UnicodeToString=0)
return ret
Any idea what is going on?
Thanks,
Shoaev
I'm encountering an issue where the InvokeTypes method is returning
None and I'm unable to Dispatch a particular COM object from
DMCoreAutomation.dll. Everything works fine except for method
GetItemFields.
Using Python 2.4.2, pywin32 build 209.
Here is some example code (I can provide full source code if needed):
<win32com.gen_py.57E95830-6C61-4EB4-B18D-B3CE87313C28x0x1x0.IItemStoreFiles
instance at 0x18300760><win32com.gen_py.57E95830-6C61-4EB4-B18D-B3CE87313C28x0x1x0.IColorItem
instance at 0x18670816>
sc.GetItemKeyText() u'[0x1007/017]'
df = sc.GetItemFields()
df
df here is None. Other IColorItem methods work correctly.
Here is the relevant bit from the makepy generated code:
def GetItemFields(self):
"""Get (DB parsed) item fields (returns DB parsed field interface)"""
ret = self._oleobj_.InvokeTypes(414, LCID, 1, (9, 0), (),)
if ret is not None:
ret = Dispatch(ret, 'GetItemFields', None, UnicodeToString=0)
return ret
returning NoneFrom pdb, self._oleobj_.InvokeTypes(414, LCID, 1, (9, 0), (),) is
Any idea what is going on?
Thanks,
Shoaev