Re: ctypes - swig - pointer
- From: gianluca <geonomica@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 10:35:20 -0700 (PDT)
On 30 Giu, 18:26, Jean-Paul Calderone <exar...@xxxxxxxxxx> wrote:
On Mon, 30 Jun 2008 09:13:42 -0700 (PDT), gianluca <geonom...@xxxxxxxxx> wrote:
I've a problem with dll function colled with python/ctypes. My
functions (C) requred a typedef int "value_type" in tree different
way:
same as value_type; - mydll.foo1(value_type)
same as *value_type; - mydll.foo2(*value_type)
same as **value_type; - mydll.foo3(**value_type)
How can pass it in python. If i do that:
rules=POINTER(value_type)
opr=rsl.StrengthOfRules(rules,10)
R=POINTER(rules)
POINTER takes a class and returns a new class which represents a pointer
to input class.
pointer takes an instance and returns a new object which represents a
pointer to that instance.
Jean-Paul
so,
if I write this:
p=pointer(value_type)
mydll.foo1(p)
could be correct but python say me:
TypeError: _type_ must have storage info
what does mean?
thank you
gima
.
- References:
- Re: ctypes - swig - pointer
- From: Jean-Paul Calderone
- Re: ctypes - swig - pointer
- Prev by Date: Re: How do web templates separate content and logic?
- Next by Date: Re: How do web templates separate content and logic?
- Previous by thread: Re: ctypes - swig - pointer
- Next by thread: raw_input into Tkinter ?
- Index(es):
Relevant Pages
|