Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!news.cs.indiana.edu!msi.umn.edu!cs.umn.edu!quest!digibd!merlyn From: merlyn@digibd.com (Merlyn LeRoy) Newsgroups: comp.sys.mac.programmer Subject: Re: Serial Driver Routines in Think C Message-ID: <1991Mar05.185523.758@digibd.com> Date: 5 Mar 91 18:55:23 GMT References: <10686@bunny.GTE.COM> <15294@june.cs.washington.edu> Organization: DigiBoard Incorporated, St. Louis Park, MN Lines: 12 chou@cs.washington.edu (Pai Chou) writes: >You should use FSRead(-6, count, &buf) and FSWrite(-7, count, &buf) >to read/write the modem port. FSRead(-8,..) and FSWrite(-9,..) for >the printer port. You should NOT use a literal -6, -7, etc. Use the results of your OpenDriver() call! Use the Comm Toolbox to get the port or at least make the string in OpenDriver() a resource, not a literal string. That way you'll have a hope of changing the port easily. --- Merlyn LeRoy