[comp.sys.apple] ModalDialog Problem

dlyons@Apple.COM (David Lyons) (08/03/89)

In article <8907301616.aa07023@SMOKE.BRL.MIL> STEIN@UCONNVM.BITNET (Alan Stein) writes:
>  I am trying to create a dialog box using Orca/C. [...]
>dialogRec.dtItemList[2] = (ItemTempPtr) &message;
>dialogRec.dtItemList[3] = (ItemTempPtr) &inputline;

You need a NULL at the end of the array:

  dialogRec.dtItemList[4] = (ItemTempPtr) NULL;

Other than that I don't see any problems.

 --Dave Lyons, Apple Computer, Inc.          |   DAL Systems
   AppleLink--Apple Edition: DAVE.LYONS      |   P.O. Box 875
   AppleLink--Personal Edition: Dave Lyons   |   Cupertino, CA 95015-0875
   GEnie: D.LYONS2 or DAVE.LYONS         CompuServe: 72177,3233
   Internet/BITNET:  dlyons@apple.com    UUCP:  ...!ames!apple!dlyons

   My opinions are my own, not Apple's.