Failing to get Profile Manager using do_GetService(NS_PROFILE_CONTRACTID, &rv)
Hi,
I am trying to integrate Firefox 2.0 with my application.
I am trying to get an object of nsIProfileInternal to get the list of all available profiles...
but when I execute following lines of code do_GetService(NS_PROFILE_CONTRACTID, &rv) is failing to return an object of profile manager
//code
nsCOMPtr <nsIProfileInternal> profile_manager =
do_GetService(NS_PROFILE_CONTRACTID, &rv);
and rv contains as error code - NS_ERROR_FACTORY_NOT_REGISTERED
but when I try the same code with Mozilla 1.5... it works fine
please help to solve this problem... any suggestions are appreciated...
thanks in advance...
-Vikas
|