>> The last step in converting my program to Appearance Carbon is overcoming >> the compile errors associated with three toolbox commands. >> >> I load these values into the parameterblock... >> >> PBlk&.ioNamePtr&=FileName&'this is file name pointer >> PBlk&.ioVRefNum%=Vol%'this is volume reference number >> PBlk&.ioPermssn%=Perm%'if 3 then exclusive read/write permission >> PBlk&.ioPosMode%=_fsFromStart >> >> FB3 Carbon compiler generates errors for these three commands >> ioErr% = FN OPEN(PBlk&) >> ioErr% = FN CREATE(PBlk&) >> ioErr%=FN FLUSHVOL(PBlk&) > > You did not say where you were getting the info to plug into these toolbox > calls. Is it from FILES$. > > Any way you go, you will need to read the section named Appendix H: File > Spec Records and pay particular attention to the OS x vs OS 9 volRefNum > section and to FN GetRealVolAndDir(vRefNum%,parentID&) > > > -STAZ ~)~ Thanks My folder ID is from FILES$. I have read Appendix H. I also understand that OS X uses a different data block format for opening/creating files than that contained in the pre-OS X parameterblock. I am starting to read IM to learn more about the new toolbox routines, but was hoping someone had experience with this to reduce my time. I still don't find a clear explanation for specifically what FN FBWDToPBWD(parameterblock) does. It is in the example programs but as far as I can see not documented in the manuals. The following toolbox access routines allow the user to directly access data files. They work fine in R6, except when compiled under carbon they create a "function must be defined before using" and other compile errors. FN OPEN(PBlk&) FN CREATE(PBlk&) FN FLUSHVOL(PBlk&) In OS X what is the correct syntax for these routines, if any? Doug Stemen