daz wrote: > Michael Davis wrote: > >>I would like to request an enhancement to Win32API.c to support short integers. >>The return codes from all ODBC function calls through Win32API are incorrect using 'i' or 'l'. >>Adding support for 's' (short int) corrects this problem. >> >>[snippage] > > > > In the meantime ... > > > long = 0x0000fffd > p long > > short = [long].pack('l').unpack('s')[0] > p short > > > #-> 65533 > #-> -3 > > (I don't know if that's good for both "big/little-endian" processors.) > > > daz > > > Thanks. This very work around help me identify where the real problem was. My only concern with this implementation is the over overhead associated with every function call.