Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73479

Re: comtypes

Newsgroups comp.lang.python
Date 2014-06-21 10:09 -0700
References <7b0712bf-68b0-4183-860d-2a39d22b62f4@googlegroups.com> <lo4c6q$rdk$1@reader1.panix.com>
Message-ID <9eda1f3c-bd06-4b5e-b627-4392953333dc@googlegroups.com> (permalink)
Subject Re: comtypes
From peter.balazovic@emspin.com

Show all headers | View raw


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@googlegroups.com> peter.balazovic@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@panix.com    watch 'House', or a real serial killer to watch 'Dexter'.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

comtypes peter.balazovic@emspin.com - 2014-06-21 00:08 -0700
  Re: comtypes John Gordon <gordon@panix.com> - 2014-06-21 16:34 +0000
    Re: comtypes peter.balazovic@emspin.com - 2014-06-21 10:09 -0700
  Re: comtypes Thomas Heller <theller@ctypes.org> - 2014-06-21 20:17 +0200
    Re: comtypes peter.balazovic@emspin.com - 2014-06-21 12:08 -0700

csiph-web