Err cfVolNum( UInt16& volNum, // returned UInt8 cardIndex) // 0 for first volume, 1 for second, etc. { Err err; UInt32 volIterator = vfsIteratorStart; while (volIterator != vfsIteratorStop) { err = VFSVolumeEnumerate(&volNum, &volIterator); if (err == errNone) { // found a volume -- return if it's the one we want if (cardIndex == 0) return errNone; else cardIndex--; } } return expErrCardNotPresent; }
Should have returned the second volume found on the device for when cardIndex = 1, regardless of whether it was in internal memory or on the T5's removable card, shouldn't it? It works properly on the T5's simulator, but not on the actual device.
Rich
Nevermind. User error. It's working fine now. I think I must have not had the SD card seated properly.
Rich
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
