Re: Accessing dll

2012-09-08 Thread Chris Angelico
On Sat, Sep 8, 2012 at 3:27 AM, Helpful person rrl...@yahoo.com wrote: On Sep 7, 5:16 am, Chris Angelico ros...@gmail.com wrote: On Fri, Sep 7, 2012 at 1:44 AM, Helpful person rrl...@yahoo.com wrote: FYI My Python version is 2.5.4 You may wish to upgrade, that's quite an old version.

Re: Accessing dll

2012-09-07 Thread Chris Angelico
On Fri, Sep 7, 2012 at 1:44 AM, Helpful person rrl...@yahoo.com wrote: FYI My Python version is 2.5.4 You may wish to upgrade, that's quite an old version. Unless something's binding you to version 2.x, I would strongly recommend migrating to 3.2 or 3.3. ChrisA --

Re: Accessing dll

2012-09-07 Thread Helpful person
On Sep 7, 5:16 am, Chris Angelico ros...@gmail.com wrote: On Fri, Sep 7, 2012 at 1:44 AM, Helpful person rrl...@yahoo.com wrote: FYI My Python version is 2.5.4 You may wish to upgrade, that's quite an old version. Unless something's binding you to version 2.x, I would strongly recommend

Re: Accessing dll

2012-09-06 Thread Benjamin Kaplan
On Sep 6, 2012 8:15 AM, Helpful person rrl...@yahoo.com wrote: I am a complete novice to Python. I wish to access a dll that has been written to be compatible with C and VB6. I have been told that after running Python I should enter from ctypes import * which allows Python to recognize the

Re: Accessing dll

2012-09-06 Thread Jerry Hill
On Thu, Sep 6, 2012 at 11:07 AM, Helpful person rrl...@yahoo.com wrote: I am a complete novice to Python. I wish to access a dll that has been written to be compatible with C and VB6. I have been told that after running Python I should enter from ctypes import * which allows Python to

Re: Accessing dll

2012-09-06 Thread Helpful person
FYI My Python version is 2.5.4 -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing dll

2012-09-06 Thread Helpful person
On Sep 6, 8:30 am, Jerry Hill malaclyp...@gmail.com wrote: You should start by reading the ctypes documentation, here:http://docs.python.org/library/ctypes.html.  It has a lot of examples that ought to get you started. When you run into more specific problems, you're going to have to

Re: Accessing dll

2012-09-06 Thread Ulrich Eckhardt
Am 06.09.2012 17:07, schrieb Helpful person: I am a complete novice to Python. Welcome! I wish to access a dll that has been written to be compatible with C and VB6. I have been told that after running Python I should enter from ctypes import * which allows Python to recognize the dll

Re: Accessing dll

2012-09-06 Thread Helpful person
On Sep 6, 8:28 am, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Am 06.09.2012 17:07, schrieb Helpful person: I am a complete novice to Python. Welcome! I wish to access a dll that has been written to be compatible with C and VB6.  I have been told that after running Python I

Re: Accessing dll

2012-09-06 Thread Helpful person
On Sep 6, 8:30 am, Jerry Hill malaclyp...@gmail.com wrote: You should start by reading the ctypes documentation, here:http://docs.python.org/library/ctypes.html.  It has a lot of examples that ought to get you started. The reference might help if I could get Python to recognize the dll as a

Re: Accessing dll

2012-09-06 Thread Jerry Hill
On Thu, Sep 6, 2012 at 12:46 PM, Helpful person rrl...@yahoo.com 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

Re: Accessing dll

2012-09-06 Thread Helpful person
On Sep 6, 9:58 am, Jerry Hill malaclyp...@gmail.com wrote: What do you get if you do the following at the interactive interpreter? from ctypes import * print windll.insert your dll name here, without the .dll extension -- Jerry I get: WinDLL 'my dll name without the dll extension ,

Re: Accessing dll

2012-09-06 Thread MRAB
On 06/09/2012 17:58, Jerry Hill wrote: On Thu, Sep 6, 2012 at 12:46 PM, Helpful person rrl...@yahoo.com 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

Re: Accessing dll

2012-09-06 Thread Tim Williams
On Thursday, September 6, 2012 11:07:07 AM UTC-4, Helpful person wrote: I am a complete novice to Python. I wish to access a dll that has been written to be compatible with C and VB6. I have been told that after running Python I should enter from ctypes import * which allows Python to

Re: Accessing dll

2012-09-06 Thread Tim Williams
On Thursday, September 6, 2012 4:21:56 PM UTC-4, Tim Williams wrote: On Thursday, September 6, 2012 11:07:07 AM UTC-4, Helpful person wrote: I am a complete novice to Python. I wish to access a dll that has been written to be compatible with C and VB6. I have been told that