ctypes - swig - pointer
- From: gianluca <geonomica@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 09:13:42 -0700 (PDT)
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)
I've this exception:
Traceback (most recent call last):
File "C:\temp\cRSL.py", line 49, in <module>
opr=rsl.StrengthOfRules(rules,10) #/* Creates a table of rules
strengths. */
ArgumentError: argument 1: <type 'exceptions.TypeError'>: Don't know
how to convert parameter 1
I've tried with swig (cpointer.i) olso but the library don't work
correctly and rules look empty. I need help. Could anybody give mi it?
gima
.
- Follow-Ups:
- Re: ctypes - swig - pointer
- From: Jean-Paul Calderone
- Re: ctypes - swig - pointer
- Prev by Date: Fwd: PhotoImage problem
- Next by Date: Re: ctypes - swig - pointer
- Previous by thread: PhotoImage problem
- Next by thread: Re: ctypes - swig - pointer
- Index(es):