home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21207 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!usc!sol.ctr.columbia.edu!destroyer!news.iastate.edu!dunix.drake.edu!acad.drake.edu!gg4921s
  3. From: gg4921s@acad.drake.edu
  4. Subject: ThinkC: XCMD & XFCN armadillo Q no A!
  5. Message-ID: <1993Jan11.142932.1@acad.drake.edu>
  6. Lines: 28
  7. Sender: news@dunix.drake.edu (USENET News System)
  8. Nntp-Posting-Host: acad.drake.edu
  9. Organization: Drake University, Des Moines, Iowa, USA
  10. Date: Mon, 11 Jan 1993 20:29:32 GMT
  11.  
  12. I have many questions about writing XCMDs and XFCNs in Think C 5.0
  13. here are a couple:
  14.  
  15. 1. Here is an example XFCN main function decleration from Neil Day of Apple:
  16.  
  17.   pascal void EntryPoint ( XCmdPtr paramPtr )  //Standard XFCN function dec.
  18.  
  19.   Here is mine:
  20.  
  21.   pascal void main( XCmdPtr paramPtr )
  22.  
  23.   Q: what's the difference? Is the name EntryPoint supposed to mean something
  24.      special?
  25.  
  26. 2.  Neil(above) declares a handler, assings a thing for it to handle and then
  27.     sets the paramPtr->returnValue = to it, but then never disposes of the
  28.     handle.
  29.  
  30.     Q: Should he dispose of the handler in the XFCN, or does hyperCard
  31.        magically do this for him?  
  32.  
  33. 3. Q: where can I find more info on writing XCMDs & XFCNs aside from:
  34.       HyperCard 2.0: The Book; Claris HyperCard Script Language Guide;
  35.       Apple HyperCard Script Language Guide: The HyperTalk Language ????
  36.  
  37. Thanks in advance,
  38. Gordon Graber, Drake University    internet: gg4921s@acad.drake.edu
  39.  
  40.