osella@cme.nbs.gov (Steve Osella) (07/06/89)
I'm trying to write som routines to communicate through the MacII serial (modem) port. I'm using LighttSpeed C. The problem I seem to be having is with the SerGetBuf function (See Inside Mac II). The first argument to this function is the reference number which is -6 for modem port inputs. The second argument is a pointer to a LONGINT which represents the number of bytes available in the input buffer. I'm pretty sure I'm setting up the ports and buffers correctly. The SerGetBuf function consistently returns an ASTRONOMICAL value for the count argument. Has anyone experienced any problems. Do you have any code.