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: Problem in FSPathMakeRef() ??




On Sep 13, 2005, at 9:07 AM, darpan kamboj wrote:

OSStatus err;
OSErr error;
FSRef ref;
const char *cCompletePath;
err=FSPathMakeRef((const UInt8*)cCompletePath, &ref, NULL);

error=FSCreateDirectoryUnicode (&ref, pFileName.length(), (const UniChar*)
pFileName.unicode(), kFSCatInfoNone, NULL, NULL, NULL, NULL);

Where do you get pFileName ?

What's the value returned in error? You also don't seem to check whether the FSMakePathRef succeeds. Does it?

You declare cCompletePath as a char *, but later cast it to a UInt8*. These are different. How do you get the characters into it? Where do the characters come from? Are they canonically decomposed UTF-8 characters?

If you've been reposting because nobody has answered your question, it may be because you have not provided enough information for people to gather any idea what's going wrong.

Chris
_______________________________________________
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: 
 >Problem in FSPathMakeRef() ?? (From: "darpan kamboj" <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.