Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cca!mirror!ishmael!inmet!lipsett From: lipsett@inmet.UUCP Newsgroups: comp.sys.mac Subject: Re: Broken DrawString in LSC? Message-ID: <127200009@inmet> Date: Mon, 26-Oct-87 10:26:00 EST Article-I.D.: inmet.127200009 Posted: Mon Oct 26 10:26:00 1987 Date-Received: Sat, 31-Oct-87 02:28:56 EST References: <11540031@hpsmtc1.HP.COM> Lines: 13 Nf-ID: #R:hpsmtc1.HP.COM:-1154003100:inmet:127200009:000:610 Nf-From: inmet.UUCP!lipsett Oct 26 10:26:00 1987 DrawString (and the other Toolbox routines) accept Pascal strings, which are counted ASCII strings. LSC uses C strings by default. LSC WILL NOT AUTOMATICALLY CONVERT FOR YOU (this is a feature). You can specify a Pascal-style string literal by the syntax "\pyour string". The runtime routines PtoCstr and CtoPstr will convert from one style to the other in-place (and also return the converted string as a function value). When you use them, remember to include or to declare the function types (I only say this because it took me two days to find this stupid error on my part). Roger Lipsett