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(valu e_type)
same as *value_type; - mydll.foo2(*val ue_type)
same as **value_type; - mydll.foo3(**va lue_type)
How can pass it in python. If i do that:
rules=POINTER(v alue_type)
opr=rsl.Strengt hOfRules(rules, 10)
R=POINTER(rules )
I've this exception:
Traceback (most recent call last):
File "C:\temp\cRSL.p y", line 49, in <module>
opr=rsl.Strengt hOfRules(rules, 10) #/* Creates a table of rules
strengths. */
ArgumentError: argument 1: <type 'exceptions.Typ eError'>: 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
functions (C) requred a typedef int "value_type " in tree different
way:
same as value_type; - mydll.foo1(valu e_type)
same as *value_type; - mydll.foo2(*val ue_type)
same as **value_type; - mydll.foo3(**va lue_type)
How can pass it in python. If i do that:
rules=POINTER(v alue_type)
opr=rsl.Strengt hOfRules(rules, 10)
R=POINTER(rules )
I've this exception:
Traceback (most recent call last):
File "C:\temp\cRSL.p y", line 49, in <module>
opr=rsl.Strengt hOfRules(rules, 10) #/* Creates a table of rules
strengths. */
ArgumentError: argument 1: <type 'exceptions.Typ eError'>: 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