Article View: comp.sys.mac
Article #20760Re: Broken DrawString in LSC?
From: Richard Siegel
Date: Mon, 26 Oct 1987 14:45
Date: Mon, 26 Oct 1987 14:45
30 lines
1607 bytes
1607 bytes
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
DrawString doesn't take null-terminated strings, it takes Pascal
strings. Try the following:
DrawString("\pThis is a string.");
or
sprintf(s, "\pThis is a string.");
DrawString(s);
It worked right in Desmet and Megamax because (as has already been described)
both of those compilers do the string conversion from C to Pascal auto-
matically.
--Rich
**The opinions stated herein are my own opinions and do not necessarily
represent the policies or opinions of my employer (THINK Technologies, Inc).
* Richard M. Siegel | {decvax, ucbvax, sun}!harvard!endor!singer *
* Customer Support | singer@endor.harvard.edu *
* Symantec, THINK Technologies Division. (No snappy quote) *
Technical Details
Message-ID:
<3051@husc6.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!endor!singerReferences:
<11540031@hpsmtc1.HP.COM>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!endor!singer From: singer@endor.harvard.edu (Richard Siegel) Newsgroups: comp.sys.mac Subject: Re: Broken DrawString in LSC? Message-ID: <3051@husc6.UUCP> Date: Mon, 26-Oct-87 09:45:27 EST Article-I.D.: husc6.3051 Posted: Mon Oct 26 09:45:27 1987 Date-Received: Wed, 28-Oct-87 02:03:32 EST References: <11540031@hpsmtc1.HP.COM> Sender: news@husc6.UUCP Reply-To: singer@endor.UUCP (Richard Siegel) Organization: THINK Technologies, Inc., Bedford, MA Lines: 30