Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: Standard File and Desk Accessories Message-ID: <2001@husc6.harvard.edu> Date: 5 Jun 89 02:40:14 GMT References: <50967@tut.cis.ohio-state.edu> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Distribution: usa Organization: Symantec/THINK Technologies, Bedford, MA Lines: 23 In article <50967@tut.cis.ohio-state.edu> Todd A Hitt writes: > >I can't use a global variable in a Desk Accessory. I've tried using the >dialog's refCon - which causes Standard File to crash. If you're using LightspeedC 3.0 or later, or Lightspeed Pascal 2.0 or later, then DA's can have globals. Otherwise, you can allocate storage in the dCtlStorage handle field of the DA's DCE. --Rich ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "She told me to make myself comfortable, so I pulled down my pants and sat in the pudding." -Emo Phillips ~~~~~~~~~~~~~~~