Finding out executable location from a c program
Roy Lovejoy
roy at adeptsolutions.com
Mon Nov 19 14:53:01 PST 2007
>>
>>>> I would need to find out the directory where the current
>>>> executable
>>>> resides to find some stuff whose location I know relative to the
>>>> executable location.
>>>
if you aren't adverse to linking to carbon,
GetCurrentProcess(&applicationSerialNumber);
GetProcessInformation(&applicationSerialNumber, &application);
will return the executable's fsspec in processAppSpec.
More information about the MacOSX-dev
mailing list