Samu Niveri wrote:
>
> I have created small app for SWx and encountered a minor problem with
> it. When trying to read properties from SWx-files using API-command:
> CustomPropertyManager.Get2(ByVal FieldName As String, ByRef ValOut As
> String, ByRef ReesolvedValOut As String) I get results:
>
> CustPropMgr.Get2(CustProperty, ValOut, ResValOut)
> File "<COMObject <unknown>>", line 2, in Get2
> pywintypes.com_error: (-2147352571, 'Type mismatch.', None, 2)
Those are output parameters. You probably want this:
(ValOut, ResValOut) = CustPropMgr.Get2(CustProperty)
--
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32