comtypes

peter.balazovic at emspin.com peter.balazovic at emspin.com
Sat Jun 21 13:09:27 EDT 2014


Hmm, I did that - oleviewer says

[id(0x60020002)]
HRESULT ReadVariable(
                [in] VARIANT bsVar, 
                [out, optional] VARIANT* vValue, 
                [out, optional] VARIANT* tValue, 
                [out, optional] VARIANT* bsRetMsg, 
                [out, retval] VARIANT* pOk);

ipython 
>>help(fm.ReadVariable)
Help on method ReadVariable in module ctypes:

ReadVariable(...) method of comtypes.POINTER(IMcbPcm) instance


Still I try to figure out how to handle it in python
Peter

On Saturday, June 21, 2014 6:34:34 PM UTC+2, John Gordon wrote:
> In <7b0712bf-68b0-4183-860d-2a39d22b62f4 at googlegroups.com> peter.balazovic at emspin.com writes:
> 
> 
> 
> > >> print dwt
> 
> > (<comtypes.automation.LP_tagVARIANT object at 0x05A8E1C0>, <comtypes.automation.LP_tagVARIANT object at 0x05A8E210>, <comtypes.automation.LP_tagVARIANT object at 0x05A8E260>, True)
> 
> >  
> 
> > by using print gives me return values. I want to access return data
> 
> > (array)and variable. How can I correctly handle it?
> 
> 
> 
> You can use help() and dir() to display more information about an object.
> 
> 
> 
> -- 
> 
> John Gordon         Imagine what it must be like for a real medical doctor to
> 
> gordon at panix.com    watch 'House', or a real serial killer to watch 'Dexter'.



More information about the Python-list mailing list