Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!gem.mps.ohio-state.edu!lavaca.uh.edu!george!mike From: mike@george.uh.edu (Mike Frederick) Newsgroups: comp.sys.mac.programmer Subject: Incorrect Aztec C definition for TESetStyle Message-ID: <5098.257680a3@george.uh.edu> Date: 1 Dec 89 19:46:11 GMT Organization: University of Houston Lines: 21 For anyone using Aztec C's include files (version 3.6) and the "new" TextEdit routine TESetStyle: (I'm new to the list, sorry if someone already posted this) The declaration (its actually a #define) for TESetStyle is incorrect. This routine traps via TEDispatch, along with some of the other "new" TE routines. There is a routine selector argument that tells TEDispatch which routine to execute. The TESetStyle selector is 1, but the Aztec C definition uses 0. Just edit the line: #define TESetStyle(m,n,r,H) TEDispatch(m,n,r,H,0) to be #define TESetStyle(m,n,r,H) TEDispatch(m,n,r,H,1) in TextEdit.h and all will work. Also remember that you must define a symbol __ALLNU__ to get the "new" SE and Mac II definitions. Mike Frederick University of Houston Computing Center MIKE@uh.edu (Internet), MIKE@ELROY (Bitnet)