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: fopen



On Jun 30, 2005, at 10:38 AM, Carl Smith wrote:

I have been running some code, via my xcode project for some time now. The other day I had problems with my user account, another story, so I created a new admin user account. I put my xcode project into my new users/me folder and opened the xcode from the new location.

My problem is I have an FILE *fp = fopen(m_szfilepathandname, “wb”) line that was working before. Now it fails, fp = NULL, and the folder is not created, on my hard drive, as it was before. It is like I do not have permissions to create this folder, but before I did.

Is there some way to force fopen to work, because I need to work on what every machine I install this app on. Maybe there is another way I should be creating this new folder/path?

Check the permissions on the parent folder.  If you just drag-copied it from one user account to another, the enclosing folder is probably still owned by your previous user account, and may not afford privileges to the new user account to create files in it.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >fopen (From: "Carl Smith" <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.