ren@surf.sics.bu.oz (Renato Iannella) (12/18/89)
In Inside Mac Vol5 (page 369) it describes the low level file manager function PBHCopyFile. I've had NO luck in getting this function to work. I know the full filename of the source and destination files and vrefnum's. I can set up working directories OK, but when I call the PBHCopyFile function it always returns a -50 error (error in user parameter list). ( One thing to note is that ioFileName parameter is incorrect and should be ioNamePtr -- is this right Apple? ) Any help from someone who has used this function would be greatly appreciated! ThanXs, Renato Iannella --- Info & Comp Sciences, Bond University, Australia, 4229 Voice: +61 75 953381 ARPA,Bit: ren%kowande.bu.oz.au@uunet.uu.net Fax: +61 75 953320 Internet: ren@kowande.bu.oz.au
6500stom@hub.UUCP (12/18/89)
From article <707@surf.sics.bu.oz>, by ren@surf.sics.bu.oz (Renato Iannella): > In Inside Mac Vol5 (page 396) it describes the low level file manager > function PBHCopyFile. I've had NO luck in getting this function to > work. I know the full filename of the source and destination files and > vrefnum's. I can set up working directories OK, but when I call the > PBHCopyFile function it always returns a -50 error (error in user > parameter list). ( One thing to note is that ioFileName parameter is > incorrect and should be ioNamePtr -- is this right Apple? ) Oh dear. If only people would read IM. "For AppleShare startup volumes, these calls get installed by an 'INIT' resource patch contained within the AppleShare file. This means that only the startup volumes with the AppleShare file located in its System Fldr will support the shared environment calls. Since the patch currently handles only external file system volumes, making the new calls to local volumes will return with an error; however, the AppleShare external file system code will get all calls made to AppleShare volumes" (V-386) If you're still having problems, even with AppleShare volumes, then maybe you have a case to be whining. / Josh Pritikin T Ignorance is bliss. \ | Internet: 6500stom@ucsbuxa.ucsb.edu | I must be in hell. | | AppleLink: Josh.P | My room is proof that entropi | \ GEnie: J.Pritikin ! exists. /
lsr@Apple.COM (Larry Rosenstein) (12/19/89)
You must use the call PBHGetVolParms to find out if the volume supports PBHCopyFile. See page V-393 of Inside Mac volume 5. Larry Rosenstein, Apple Computer, Inc. Object Specialist Internet: lsr@Apple.com UUCP: {nsc, sun}!apple!lsr AppleLink: Rosenstein1