I have a .dll inside it that has a BUBBLE function that returns a double.
The problem is that BUBBLE has a vector<double>
in the argument.
extern "C" minhaDLL_API double BOLHA(vector<double> OI);
In fact it has a extern "C"
which makes me believe that when compiling the .dll this turned into a pointer of double
. I tried loading this function from .dll into python as follows
mydll = cdll.LoadLibrary("_DLL.dll")
func = mydll.BOLHA
func.argtypes = [POINTER(c_double)]
func.restype = c_double
returnarray = (c_double * 2)(0.047948, 0.005994)
func(returnarray)
but it returns me the error
[Error -529697949] Windows Error 0xE06D7363