I am trying to access my function in dll and pass integer value through it. But I get a ValueError as:
Procedure probably called with too many arguments (4 bytes in excess)
My python.py script looks like this:
func2.restype = c_int func2.argtypes = [c_int] func2(3)
...
My actual function in the dll is a simple function, for example:
int DLLfun2(int argtest) { return argtest + 1; };
...
Looks like a simple problem, but I guess I'm missing something. Please help.
Greetings.
source share