Re: ctypes - swig - pointer
- From: Jean-Paul Calderone <exarkun@xxxxxxxxxx>
- Date: Mon, 30 Jun 2008 12:26:20 -0400
On Mon, 30 Jun 2008 09:13:42 -0700 (PDT), gianluca <geonomica@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
.
- Follow-Ups:
- Re: ctypes - swig - pointer
- From: gianluca
- Re: ctypes - swig - pointer
- References:
- ctypes - swig - pointer
- From: gianluca
- ctypes - swig - pointer
- Prev by Date: ctypes - swig - pointer
- Next by Date: raw_input into Tkinter ?
- Previous by thread: ctypes - swig - pointer
- Next by thread: Re: ctypes - swig - pointer
- Index(es):
Relevant Pages
|