Path: utzoo!attcan!uunet!snorkelwacker!mit-eddie!bbn.com!nic!chaos.cs.brandeis.edu!chaos!phils From: phils@chaos.cs.brandeis.edu (Phil Shapiro) Newsgroups: comp.sys.mac.programmer Subject: Re: Can't seem to get SFGetFile to work....! Message-ID: Date: 24 Sep 90 13:56:11 GMT References: <9183@potomac.ads.com> <1990Sep22.232806.26935@news.iastate.edu> Sender: @chaos.cs.brandeis.edu Organization: Symantec Corp. Lines: 24 In-Reply-To: niko@du248-16.cc.iastate.edu's message of 22 Sep 90 23:28:06 GMT I may be missing something, but... you can't call SF{Put,Get}File before you've intialized the ToolBox. The standard file routines depend on a initialized QuickDraw world. If you want to use the standard file calls with the console library (the part of ANSI that gives you a menubar, etc.) you can let the console do the inits for you simply by referencing any of the standard i/o streams, eg: main() { printf("\n"); selectfile(); ... } BTW, the 'minimal' SFGetFile call would probably be: SFGetFile(0x00500045, "", 0L, -1, 0L, 0L, &reply); or SFGetFile(0x00500045, "", 0L, 1, "TEXT", 0L, &reply); -phil shapiro, symantec tech support -- Phil Shapiro phils@chaos.cs.brandeis.edu