OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Problem with preferences

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
ilich
Guest





PostPosted: Tue May 20, 2003 3:36 am    Post subject: Problem with preferences Reply with quote

Hello.
I have following problem. I need to get preferences of current profile.
Here is the code I wrote:

nsCOMPtr<nsIPrefService> prefService =
do_GetService(NS_PREFSERVICE_CONTRACTID);

if(prefService)
{
nsCOMPtr<nsIPrefBranch> prefBranch;
rv = prefService->GetBranch("network.proxy.", getter_AddRefs(prefBranch));
if(NS_SUCCEEDED(rv))
{
char* sStr;
rv = prefBranch->GetCharPref("http", &sStr);
}
else {...}
}
else {...}

This code get preferences from C:\program files\Netscape\defaults\pref\all.js
but these preferences are not of current profile.
What shall i do?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> General Discussion All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group