win32com InvokeTypes is None

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>
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
From pdb, self._oleobj_.InvokeTypes(414, LCID, 1, (9, 0), (),) is
returning None


Any idea what is going on?

Thanks,
Shoaev
 
G

Gabriel Genellina

I'm encountering an issue where the InvokeTypes method is returning
None and I'm unable to Dispatch a particular COM object from

I think you will get better responses if you post on
http://mail.python.org/mailman/listinfo/python-win32



Gabriel Genellina
Softlab SRL





__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,128
Latest member
ElwoodPhil
Top