Preference file reading by using FindFolder()
Preference file reading by using FindFolder()
- Subject: Preference file reading by using FindFolder()
- From: anna Smith <email@hidden>
- Date: Thu, 2 Jun 2005 17:10:22 +0530
Hi friends,
i need help for reading preference file.
I am porting project from mac OS 9 to Mac X , And my old preference file is in System/preference /preffile
in the preference folder and i want to read that preference file i am
using FindFolder function but i am not able to open that preference
file.
I have query in Mac OS 9 we had System folder and that have Preference
folder where as in the mac OS X we have System folder which is having
sub folder Library and that is having preferencePane folder.
i am confuse whether Find Folder auto matically find this folder file or i need to do something else
Please let me know if anyone can halp me out
sample code
err = noErr; vref = 0; dir = 0L;
resnum=CurResFile();
result = TRUE;
memset(dbcnP,0,sizeof(PinkDbCnTyp));
err = FindFolder(kOnSystemDisk,kPreferencesFolderType,kCreateFolder,&vref,&dir);
err = HOpenResFile ( vref,dir, (ConstStr255Param)dbSettingFileName, fsRdPerm );
if(err == -1)
result = err;
else
{
}
Thanks
Anna
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden