home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!purdue!mentor.cc.purdue.edu!benescc
- From: benescc@mentor.cc.purdue.edu (Chris Benes)
- Newsgroups: comp.sys.mac.programmer
- Subject: Dialog hook function problem...
- Keywords: Dialog hook
- Message-ID: <55560@mentor.cc.purdue.edu>
- Date: 30 Jul 92 17:01:54 GMT
- Organization: Purdue University
- Lines: 35
-
-
- I am having a bear of a time trying to get a customized
- "Save as..." dialog box to work.
-
- I receive the following error when my dialog hook function
- exits after being called by CustomPutFile :
-
- Unimplemented instruction at 00000100
- No procedure name
-
- I am working in Think C 5.0.1 under System 7.0.1 on a Mac IIci
- with 5 Mb.
-
- Here is the invocation:
-
- CustomPutFile(NIL, "", &reply, NEW_PROJ_DIAL_ID, myPoint,
- DlgHookPtr, NIL, NIL, NIL, NIL);
-
- The program is entering the dialog hook function, but when
- it exits it immediately crashes. The dialog box is not even
- displayed. When I use the standard hook function, everything
- is fine.
-
- My dialog hook function consists of a switch on all the standard
- "Save as..." dialog box items including a default which returns
- sfHookNullEvent.
-
- Any help would be appreciated.
-
- - Chris
- Christopher Benes
- benescc@mentor.cc.purdue.edu
-
- P.S. Is there a good ftp site where I can get examples of Mac
- programming?
-