Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/15/85; site amd.UUCP Path: utzoo!watmath!clyde!amd!ching From: ching@amd.UUCP (Mike Ching) Newsgroups: net.micro.mac Subject: Request for help with SFGetFile Message-ID: <2575@amd.UUCP> Date: Sat, 31-May-86 11:29:27 EDT Article-I.D.: amd.2575 Posted: Sat May 31 11:29:27 1986 Date-Received: Sun, 1-Jun-86 10:05:38 EDT Organization: AMD Applications, Santa Clara, CA Lines: 23 Keywords: SFGetFile LightspeedC I'm having trouble with the following code in Lightspeed C. It bombs with ID = 2 when run. Can anybody shed some light on what I'm doing wrong? #include "Lightspeed:stdio.h" #include "Lightspeed:MacTypes.h" #include "Lightspeed:StdFilePkg.h" main() { Point apoint; SFReply reply; SFTypeList typelist; apoint.v = 80; apoint.h = 80; typelist[0] = 'TEXT'; typelist[1] = 'WORD'; SFGetFile(apoint, "\p ", (ProcPtr) 0, 2, typelist, (ProcPtr) 0, &reply); ... } Mike Ching {decwrl,ucbvax}!amdcad!amd!ching