Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Application path



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

References: 
 >Getting Application path (From: Ken Baer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.