Trouble with DATE Variants under Pythonwin
Tom Fenn
tom at spirit.gcrc.upenn.edu
Wed Jun 23 15:30:39 EDT 1999
Hello:
I'm accessing an ActiveX control under Pythonwin, and having trouble
when
the method returns a DATE variant:
>>> df.dialog.xrf.GetCreationDate()
Traceback (innermost last):
File "<interactive input>", line 0, in ?
File
"C:\Python\win32com\gen_py\B5562CF4-56EC-11D2-8102-00104B304896x0x1x0.py",
line 97, in GetCreationDate
return self._ApplyTypes_(0x6, 1, (3, 0), (((26, 7), 0),),
'GetCreationDate', None, pCreationDate)
File
"C:\Python\win32com\gen_py\B5562CF4-56EC-11D2-8102-00104B304896x0x1x0.py",
line 35, in _ApplyTypes_
return self._get_good_object_(apply(self._oleobj_.InvokeTypes,
(dispid, LCID, wFlags, retType, argTypes) + args), user, resultCLSID)
TypeError: The VARIANT type is unknown.
>>>
The prototype of the function call in C is : long GetCreationDate(DATE
FAR* pCreationDate)
Couldn't find anything in particular about DATE variants in Pythonwin
docs or searching the newsgroup. Does anyone know a workaround so that
I can use this function?
Tom Fenn
More information about the Python-list
mailing list