Path: utzoo!attcan!uunet!jarthur!elroy.jpl.nasa.gov!sdd.hp.com!mips!pacbell.com!pacbell!hoptoad!fidogate!f444.n161.z1.FIDONET.ORG!Richard.Diaz From: Richard.Diaz@f444.n161.z1.FIDONET.ORG (Richard Diaz) Newsgroups: comp.sys.mac.programmer Subject: THINK C ERROR MESSAGE Message-ID: <13457.27F14033@fidogate.FIDONET.ORG> Date: 26 Mar 91 23:14:38 GMT Sender: ufgate@fidogate.FIDONET.ORG (newsout1.26) Organization: FidoNet node 1:161/444 - BMUG, Berkeley CA Lines: 22 WindowInit() { gHelloWindow=GetNewWindow( BASE_RES_ID, NIL_POINTER, MOVE_TO_FRONT ); ShowWindow (gHelloWindow ); SetPort (gHelloWindow ); MoveTo (HORIZONTAL_PIXEL, VERTICAL_PIXEL ); DrawString("\pHello, World"); } I type in the sample program from Macintosh Programming PRIMER Volume I and try to run this program. At line-8 "DrawString("/pHello, World");", I have an error message which said "illegal instruction" when I run the program. Could someone tell me what wrong with it? I believe there is no typing error. Thanks From : Richard Diaz -- Richard Diaz - via FidoNet node 1:125/777 UUCP: ...!uunet!hoptoad!fidogate!161!444!Richard.Diaz INTERNET: Richard.Diaz@f444.n161.z1.FIDONET.ORG