Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: Programming the SCC Message-ID: <7681@hoptoad.uucp> Date: 16 Jun 89 20:59:54 GMT References: <2286@ur-cc.UUCP> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 21 In article <2286@ur-cc.UUCP> mcli@joker (Maurice Ling) writes: >I'm a relatively novice Mac Programmer and I would like to send and receive >simple ascii codes through the SCC port A using THINK's Lightspeed C. >I've tried many things already and the program below gives me "Pascal >argument wrong size" error. Sigh -- would it have been too much trouble to mention what line the error was on? > SerShk flags; > stuff = SerHShake (-7,flags); I take it this was the line? Structures over four bytes are passed to the OS by pointer in LightSpeed C. "stuff = SerHShake(-7, &flags);" should work. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com Postal: 424 Tehama, SF CA 94103; Phone: (415) 495-2934 These are not my opinions, those of my ex-employers, my old schools, my relatives, my friends, or really any rational person whatsoever.