Maybe below is useful for you.
void getApplicationParentFolder(FSRef *fr)
{
FSRef f;
ProcessSerialNumber curproc = {0, kCurrentProcess};
GetProcessBundleLocation(&curproc, &f);
FSGetCatalogInfo(&f, kFSCatInfoNone, 0, 0, 0, fr);
}
----- Original Message -----
From: "Ken Baer" <email@hidden>
To: <email@hidden>
Sent: Thursday, July 28, 2005 9:11 AM
Subject: Getting Application path
>I have a dynamic library that needs to get the path for the main
> executable. What I am doing is building the path to load a file that
> lives in the same folder as my application. I'm sure there's a
> function that returns this path, but I haven't found it yet. Can
> someone tell me the function I need to call to get this path?
>
> Thanks!
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Carbon-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/carbon-dev/email@hidden
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden