Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!mailrus!ames!claris!drc From: drc@claris.com (Dennis Cohen) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW Pascal and libraries Message-ID: <10938@claris.com> Date: 14 Mar 90 23:52:35 GMT References: <958@uvicctr.UVic.CA.UUCP> <7180@goofy.Apple.COM> Distribution: na Organization: Claris Corporation, Santa Clara CA Lines: 34 chewy@apple.com (Paul Snively) writes: >You certainly are, if the documents that you named are the only ones that >you have on the subject. >You'll need at least Inside Macintosh Volumes I-IV, and volume V if you >intend to support Macintosh SE- or II-class machines. Also, you'll need >the Macintosh Technical Notes, which are available via anonymous FTP to >apple.com, in pub/dts/mac/tn, I believe. >Among other things, Inside Macintosh documents NumToString, which takes an >INTEGER and a VAR STR255, e.g.: Not wanting to contradict you, Paul, but NumToString takes a LongInt, not an Integer. (PACK 7) >VAR > theErr: INTEGER; > tempString: STR255; >... >NumToString(theErr, tempString); >... >This will convert theErr to a string, which you can then do whatever you >wish with. Obviously, what Paul recommends will work because the Pascal compiler will extend theErr to a LongInt when it passes it to the Toolbox. Dennis Cohen Claris Corp. **************************************************** Disclaimer: Any opinions expressed above are _MINE_! ****************************************************