[futurebasic] Re: [FB] how to get filename

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2003 : Group Archive : Group : All Groups

From: Robert Purves <rpurves@...>
Date: Sat, 12 Apr 2003 21:35:23 +1200
On Saturday, April 12, 2003, Keiji Goto wrote:

> I am looking for a means to get the filename for
> a running application including its extension (if
> any) under OS X. Probably I am missing something
> and if anyone can point me to a referencial info,
> it would be most appreciated.

See the Release 7 CD Examples  "Long file names in OS X". That demo 
shows how to do the following:
convert FSSpec -> FSRef
    get name from FSRef as HFSUniStr255
        convert HFSUniStr255 -> CFStringRef
        convert CFStringRef  -> Pascal string

Robert P.