FROM : Roy Lovejoy
DATE : Mon Nov 19 23:53:01 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.
DATE : Mon Nov 19 23:53:01 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.






Cocoa mail archive

