there are even more problems with this profile management.
In addition to missed SDK header, NS_NewProfileDirServiceProvider returns
class instance, not interface.
Take a look at this:
nsresult NS_NewProfileDirServiceProvider(PRBool aNotifyObservers,
nsProfileDirServiceProvider**
aProvider)
it returns nsProfileDirServiceProvider, not nsIDirectoryServiceProvider as many
other API functions do.
As a result I have to delete it or it will cause memory leaks. With interfaces
it would not happen because they are
reference-counting.
-dmitry
>
> You have to init the nsprofiledirserviceprovider for the single profile to
> work. Check nsprofiledirserviceprovider.h for details.
>
>
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding