[ctypes-users] Passing a double array to a function loaded from a DLL
Brought to you by:
theller
From: jupan g. <jup...@gm...> - 2006-09-14 11:56:59
|
Hi evrybody, I keep struggling with the following problem: I tried to pass a double array of known size (let's say 200) to a function from a fortran DLL. I tried to first declare a type: doublearray = c_double * 200 myarray = doublearray() myDLLfunction(myarray) Python complains about beeing unable to pass c_float or c_double arrays. Did any of you has had this problem before ? Do you have any solution ? Thank you very much, WIth kind regards, |