Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76139
| From | Rob Gaddi <rgaddi@technologyhighland.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Begginer in python trying to load a .dll |
| Date | 2014-08-12 11:58 -0700 |
| Organization | Highland Technology, Inc. |
| Message-ID | <20140812115854.19cdccad@rg.highlandtechnology.com> (permalink) |
| References | <3dade0aa-55ca-4e52-af08-8104e9edf4c3@googlegroups.com> <b6940b3e-c5b0-4f73-a830-32a3aae82654@googlegroups.com> |
On Tue, 12 Aug 2014 11:56:37 -0700 (PDT)
c1234 py <camilocelyg@gmail.com> wrote:
> On Tuesday, August 12, 2014 3:36:17 PM UTC-3, c1234 py wrote:
> > Hi,
> >
> > Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file. The idea is to work through this dll and operate the spectometer.
> >
> > The name of the .dll is AS5216.dll. I've trying with ctype, but it doesn't work.
> >
> > I'm begginer in python.
> >
> > All the comments are useful to me.
>
>
> I'm using this
>
>
> >>import ctypes
> hllDll=ctypes.WinDLL("C:\\AS5216.dll")
>
>
> hllApiProto = ctypes.WINFUNCTYPE (ctypes.c_int,ctypes.c_void_p,
> ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p)
> hllApiParams = (1, "p1", 0), (1, "p2", 0), (1, "p3",0), (1, "p4",0),
>
>
> hllApi = hllApiProto (("HLLAPI", hllDll), hllApiParams)
>
> p1 = ctypes.c_int (1)
> p2 = ctypes.c_char_p (sessionVar)
> p3 = ctypes.c_int (1)
> p4 = ctypes.c_int (0)
> hllApi (ctypes.byref (p1), p2, ctypes.byref (p3), ctypes.byref (p4))
>
>
Great. And that fails in what way, on which line, with what error message?
--
Rob Gaddi, Highland Technology -- www.highlandtechnology.com
Email address domain is currently out of order. See above to fix.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Begginer in python trying to load a .dll c1223 <camilocelyg@gmail.com> - 2014-08-12 11:36 -0700
Re: Begginer in python trying to load a .dll Chris Angelico <rosuav@gmail.com> - 2014-08-13 04:44 +1000
Re: Begginer in python trying to load a .dll Skip Montanaro <skip@pobox.com> - 2014-08-12 13:48 -0500
Re: Begginer in python trying to load a .dll Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-12 19:52 +0100
Re: Begginer in python trying to load a .dll Chris Kaynor <ckaynor@zindagigames.com> - 2014-08-12 11:55 -0700
Re: Begginer in python trying to load a .dll c1234 py <camilocelyg@gmail.com> - 2014-08-12 11:56 -0700
Re: Begginer in python trying to load a .dll Rob Gaddi <rgaddi@technologyhighland.invalid> - 2014-08-12 11:58 -0700
Re: Begginer in python trying to load a .dll Chris Angelico <rosuav@gmail.com> - 2014-08-13 05:09 +1000
Re: Begginer in python trying to load a .dll c1234 py <camilocelyg@gmail.com> - 2014-08-12 12:13 -0700
Re: Begginer in python trying to load a .dll Laurent Pointal <laurent.pointal@laposte.net> - 2014-08-19 18:44 +0200
Re: Begginer in python trying to load a .dll "ElChino" <elchino@cnn.cn> - 2014-08-19 19:46 +0200
Re: Begginer in python trying to load a .dll Christian Gollwitzer <auriocus@gmx.de> - 2014-08-12 21:16 +0200
Re: Begginer in python trying to load a .dll c1234 py <camilocelyg@gmail.com> - 2014-08-12 12:25 -0700
Re: Begginer in python trying to load a .dll Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-12 21:17 +0100
Re: Begginer in python trying to load a .dll c1234 py <camilocelyg@gmail.com> - 2014-08-13 08:25 -0700
csiph-web