Thx for the quick response! I think I'm almost there. I seem to have a bundlePath : CFURLRef; but I don't quite know what to do with it. How do I convert it to something I can use in a Reset() to open a file?
Thx, Ken G. Brown At 10:29 AM +0100 2/5/09, Jonas Maebe apparently wrote: >On 05 Feb 2009, at 08:54, Ken G. Brown wrote: > >>How can I find the directory path to the executable of the currently >>executing program from within the program? >> >>Or alternately, how can I specify the relative path to a file that is located >>in the same folder as the application bundle for my currently executing >>program? >> >>Using ./filename does not appear to work for me. >> >>Are there file and directory type utilities available? Where can I read up on >>them? > >http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBundles/CFBundles.html > >E.g., >http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBundles/Tasks/locating.html#//apple_ref/doc/uid/20001123-123785 > > >Jonas >_______________________________________________ >fpc-pascal maillist - fpc-pascal@lists.freepascal.org >http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal