I\'m playing a little bit with ctypes and C/C++ DLLs I have a quite simple \"math\" dll
double Divide(double a, double b) { if (b == 0) { thro
Try this:
from ctypes import * mathdll=cdll.MathFuncsDll divide = mathdll.Divide divide.restype = c_double divide.argtypes = [c_double, c_double] try: print divide (10,0) except WindowsError as we: print we.args[0] except: print "Unhandled Exception"