Guest User

Untitled

a guest
Mar 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. int func(a * aa, b * bb, c * cc);
  2.  
  3. typedef struct
  4. {
  5. int a1;
  6. }a;
  7.  
  8. typedef struct
  9. {
  10. int b1;
  11. unsigned char *b2;
  12.  
  13. }b;
  14.  
  15. typedef struct
  16. {
  17. int c1;
  18. unsigned char *c2;
  19. }c;
  20.  
  21. func.argtypes = (ctypes.POINTER(a),
  22. ctypes.POINTER(b),
  23. ctypes.POINTER(c))
  24. func.restype=ctypes.c_int
  25. status=dll.func(aa,bb,cc)
  26.  
  27. ValueError: ctypes objects containing pointers cannot be pickled
Add Comment
Please, Sign In to add comment