Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ptsfa!hoptoad!dasys1!raylau From: raylau@dasys1.UUCP (Raymond Lau) Newsgroups: comp.sys.mac Subject: Re: Broken DrawString in LSC? Message-ID: <1805@dasys1.UUCP> Date: Sun, 25-Oct-87 12:29:33 EST Article-I.D.: dasys1.1805 Posted: Sun Oct 25 12:29:33 1987 Date-Received: Wed, 28-Oct-87 00:50:38 EST References: <11540031@hpsmtc1.HP.COM> Organization: The Big Electric Cat Lines: 11 Summary: Calling DrawString from LSC. In article <11540031@hpsmtc1.HP.COM>, kwallich@hpsmtc1.HP.COM (Ken Wallich) writes: > > I'm using LSC and am having problems getting DrawString to work when > I pass anything to it. It appears that LSC is failing to null terminate > the string I pass. This happens both when I pass literals, or sprintf'ed > parms. I'm running V2.11. Has anyone else run across this? The code > worked fine under Megamax and DesMet (remember that one?). Any help > would be most appreciated. > DrawString expects a pascal string (length byte preceeded) DrawString("\pTest"); works fine. If you're passing null terminated C strings, you must convert them first. Megamax deals only in C strings and converts them before passing them to DrawString...(adding conversion overhead for when you know the string in advance.)