[Discuss] Embedded Gecko and Advanced Profiles Usage Question
anton kostov
antonkostow at gmail.com
Tue Aug 15 22:12:24 EDT 2006
Hello!
I am trying to extend an embedded Gecko application with support for
profiles.
However, I cant get reference to the
@mozilla.org/profile/manager;1<http://xulplanet.com/references/xpcomref/comps/c_profilemanager1.html>component.
It's very trivial thing but since i am new to the Gecko SDK , i cant figure
what i am missing:
...
NS_InitEmbedding(nsnull, nsnull);
...
nsresult rv;
nsCOMPtr<nsIProfile> profService = do_GetService(NS_PROFILE_CONTRACTID,
&rv);
if (NS_FAILED(rv))
// and here rv returns NS_ERROR_FACTORY_NOT_REGISTERED
Do i need to link with profile_s.lib? (did but didnt help)
Do i need to undefine MOZILLA_STRICT_API and define MOZILLA_INTERNAL_API?
Do i need to initialize an nsIObserverService and enable certain
notifications?
Do i need to use -enable-profile-modules when compiling Mozilla src?
I guess this is something stupid but am suffering from lack of experience
with Mozilla...
Thanks for your help in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/discuss/attachments/20060815/e3212032/attachment.htm
More information about the Discuss
mailing list