Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!mailrus!iuvax!pur-ee!sage.cc.purdue.edu!ar4 From: ar4@sage.cc.purdue.edu (Piper Keairnes) Newsgroups: comp.sys.mac.programmer Subject: SFGetFile Message-ID: <3830@sage.cc.purdue.edu> Date: 20 Mar 90 06:05:32 GMT Organization: Purdue University Lines: 35 Got a problem folks... what's wrong with this simple code??? int handleDialog(theItem, dp) int theItem; DialogPtr dp; { return(theItem); } GetDir() { Point where = {80,80}; SFReply reply; ProcPtr ppr = handleDialog; SFPGetFile(where, NIL, NIL, 1, "", ppr, &reply, GET_DIALOG, NIL); } Several problems (first time into handleDialog): 1) when items are passed into handleDialog in their stated order I get a value of 9 for theItem, and dp points to boofoo land 2) when items are passed in opposite order (dp, theItem) I get a value of -1 for theItem and dp points to something reasonable Are the order of the items screwed up in IM ?? When handleDialog returns I get an illegal instruction command from the debugger and when I select from the pop-up menu the last procedure, it indicates the position at the bracket below the Getfile.... huh? Help me!!!!! ----- Piper Keairnes ar4@sage.cc.purdue.edu