Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python': 0.09; 'happen.': 0.09; 'sep': 0.09; 'dll,': 0.16; 'experimented': 0.16; 'explicitly.': 0.16; 'jerry': 0.16; 'subject:Accessing': 0.16; 'subject:dll': 0.16; 'wrote:': 0.17; 'thu,': 0.17; '>>>': 0.18; 'bit': 0.21; 'import': 0.21; 'ctypes': 0.22; 'recognize': 0.22; 'example': 0.23; 'header:In-Reply-To:1': 0.25; 'dll': 0.27; 'module.': 0.27; 'received:209.85.210.46': 0.27; 'received:mail- pz0-f46.google.com': 0.27; 'message-id:@mail.gmail.com': 0.27; 'helpful': 0.30; 'code': 0.31; 'could': 0.32; 'print': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'think': 0.40; 'first': 0.61; 'lays': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=BN2ZGTK+2PC5K7Q2sTQXnSOKxfakhoxSYf/nLDIgGx0=; b=09ccAFfKZSDRPLhTNKdntcwOG7n+dkIg/aB4ZiBd+QPf5JFePM8mraE+/quTpY5Buo FAmTuPaJyu5pzQUEOWaxdqWCZnJ4Tp7/QhAnaeId+GfCwDxKw6EtTgkWlnLWaqIQuMjX XDYdpAy8kXiLa15O3pgwz5eobXEPUbjUgCp7AmVGPbLMvKgLNziN9yddVefY+wxFu1oL GpulyXH0q9QlW1v9P3YJCL1jkq5JPN9kkZU2haPapblQeoVe0pedRNCGUOBokBwRn0/w sKIhuf0sBgOIk2a5yshGt9FwZ8mgw1PM9ZYBSVzcKZTnW+2+v+laN0dFNIDqkmraJTAD hTdA== MIME-Version: 1.0 In-Reply-To: <83536b03-64a5-4394-9d31-378b56f4fa27@x3g2000vbn.googlegroups.com> References: <0e642403-36e9-4945-9efb-4d074d7d0eb2@s5g2000vbj.googlegroups.com> <83536b03-64a5-4394-9d31-378b56f4fa27@x3g2000vbn.googlegroups.com> Date: Thu, 6 Sep 2012 12:58:43 -0400 Subject: Re: Accessing dll From: Jerry Hill To: python-list@python.org Content-Type: text/plain; charset=UTF-8 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: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346950727 news.xs4all.nl 6909 [2001:888:2000:d::a6]:60468 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28618 On Thu, Sep 6, 2012 at 12:46 PM, Helpful person wrote: > The reference might help if I could get Python to recognize the dll as > a module. That's never going to happen. It's a DLL, not a python module. I think the documentation lays that out pretty explicitly. Have you experimented with the very first bit of example code in the documentation? What do you get if you do the following at the interactive interpreter? >>> from ctypes import * >>> print windll. -- Jerry