Hi,
I'm in the early stages of embedding gecko in my own MFC test
application.
So far, I am only calling NS_InitEmbedding( nsnull, provider ); My
provider class is currently identical to winEmbedFileLocProvider.
I'm getting a curious failure inside NS_InitEmbedding. Internally this
function calls:
nsCOMPtr<nsIObserver> mStartupNotifier =
do_CreateInstance(NS_APPSTARTUPNOTIFIER_CONTRACTID,
&rv);
if(NS_FAILED(rv))
return rv;
When I test the value of rv, it is not 0.
Digging deeper, it appears that
nsComponentManagerImpl::CreateInstanceByContractID is failing in a call
to FindFactory. The error code from FindFactory is
NS_ERROR_FACTORY_NOT_REGISTERED.
I've looked through the source code for mfcEmbed and connot figure out
how the "factory" gets registered. Am I going blind?
I could sure use some help here.
Thanks,
Paul