Re: FSMakeFSSpec, FSpMakeFSRef, FSRefMakePath
Re: FSMakeFSSpec, FSpMakeFSRef, FSRefMakePath
- Subject: Re: FSMakeFSSpec, FSpMakeFSRef, FSRefMakePath
- From: Paul Russell <email@hidden>
- Date: Thu, 8 Jul 2004 08:54:29 -0700
On Jul 7, 2004, at 9:49 AM, Krishna Monian wrote:
I am trying to use the above function to generate the
path for a given file. However I am facing the
following problem.
When I use call FSMakeFSSpec with the default vRef(0),
the directory ID that I am interested in and 0 for the
filename, the path is generated correctly.
However, if I specify a filename which is present in
the directory whose directory ID I pass in, it fails
with -35 as the error code. Could anyone tell me what
the reason behind this could be? Is there some special
format for specifying the file name or is it just a
null terminated string?
If you look at the prototype you will see that the file name is a
ConstStr255Param, which is a Pascal string, not a C string.
Paul
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.