home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13208 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.3 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!purdue!mentor.cc.purdue.edu!benescc
  2. From: benescc@mentor.cc.purdue.edu (Chris Benes)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Dialog hook function problem...
  5. Keywords: Dialog hook
  6. Message-ID: <55560@mentor.cc.purdue.edu>
  7. Date: 30 Jul 92 17:01:54 GMT
  8. Organization: Purdue University
  9. Lines: 35
  10.  
  11.  
  12. I am having a bear of a time trying to get a customized
  13. "Save as..." dialog box to work.
  14.  
  15. I receive the following error when my dialog hook function 
  16. exits after being called by CustomPutFile :
  17.  
  18.     Unimplemented instruction at 00000100
  19.     No procedure name
  20.  
  21. I am working in Think C 5.0.1 under System 7.0.1 on a Mac IIci 
  22. with 5 Mb.
  23.  
  24. Here is the invocation:
  25.  
  26.     CustomPutFile(NIL, "", &reply, NEW_PROJ_DIAL_ID, myPoint,
  27.               DlgHookPtr, NIL, NIL, NIL, NIL);
  28.  
  29. The program is entering the dialog hook function, but when 
  30. it exits it immediately crashes.  The dialog box is not even 
  31. displayed.  When I use the standard hook function, everything 
  32. is fine.
  33.  
  34. My dialog hook function consists of a switch on all the standard
  35. "Save as..." dialog box items including a default which returns
  36. sfHookNullEvent.
  37.  
  38. Any help would be appreciated.
  39.  
  40. - Chris
  41. Christopher Benes
  42. benescc@mentor.cc.purdue.edu
  43.  
  44. P.S.  Is there a good ftp site where I can get examples of Mac
  45.       programming?
  46.