Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!rutgers!paul.rutgers.edu!friedman From: friedman@paul.rutgers.edu (Gadi ) Newsgroups: comp.sys.mac.programmer Subject: help reading directory Message-ID:Date: 15 Jul 88 02:39:50 GMT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 30 Hello I have been trying to write a routine that reads in an HFS directory, and have been having some trouble. I'm using LSP 1.11. Partial code... type VCBptr = ^VCB; begin vcbqhdr := GetVCBQHdr; elemptr := vcbqhdr^.qHead; vcb := VCBptr(elemptr); vcb^.vcbVN contains the name of the Volume. vcb^.vcbNmRtDirs contains the number of root Directories. ...BUT vcb^.vcbCTRef is always zero. It should contain a "Path reference number for catalog tree" I was planning to use this number to read in the directory. Any suggestions would be helpful since this will be my first Mac program. (Thank God for TranSkel) Gadi -- uucp: {ames, cbosgd, harvard, moss}!rutgers!aramis.rutgers.edu!friedman arpa: FRIEDMAN@ARAMIS.RUTGERS.EDU