Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'args': 0.04; 'argument': 0.04; 'from:name:bitbucket': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'bitbucket': 0.16; 'makepy': 0.16; 'param': 0.16; 'subject: \n ': 0.16; 'subject:accessing': 0.16; 'subject:which': 0.16; 'wrote:': 0.17; 'appears': 0.18; 'subject:) ': 0.20; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'appear': 0.26; 'values': 0.26; 'cc:addr:gmail.com': 0.27; 'cc:2**2': 0.27; "doesn't": 0.28; 'noticed': 0.28; '(since': 0.29; 'python).': 0.29; "i'm": 0.29; 'maybe': 0.29; 'code': 0.31; 'december': 0.32; '11,': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'really': 0.36; 'cc:no real name:2**1': 0.36; 'subject: (': 0.36; 'uses': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'different': 0.63; 'taking': 0.65; 'special': 0.73 Newsgroups: comp.lang.python Date: Tue, 11 Dec 2012 07:54:55 -0800 (PST) In-Reply-To: <5b228557-2788-4243-b840-5c8aa03d5423@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.229.66.143; posting-account=_dxy0QoAAAD9TKmsbQw-qXFKhMwXoPgn References: <38a14001-82b6-4a91-b3ad-2cb5c8ee580d@googlegroups.com> <5b228557-2788-4243-b840-5c8aa03d5423@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 24.229.66.143 MIME-Version: 1.0 Subject: Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" From: bitbucket To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: mhammond@skippinet.com.au, python-list@python.org, bitbucket X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355241302 news.xs4all.nl 6866 [2001:888:2000:d::a6]:44660 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34631 On Tuesday, December 11, 2012 10:48:53 AM UTC-5, bitbucket wrote: > > I noticed that the argument type is different for the out param (16392 instead of 8). However, it doesn't appear to me that its generating return values instead of args (though I'm not very experienced in python). > I see that the value 16392 is really VT_BYREF | VT_BSTR and 8 is just VT_BSTR. So in that case it appears MakePy is taking noticed at least of the VT_BYREF and including that in the generated code (since it uses 16392). So maybe there's a special way I need to call the generated wrapper?