Christian Biesinger wrote: > Hello! > What exactly is the difference between RegisterFactory and > RegisterFactoryLocation? What does the latter do that the former doesn't?
One registers an instance of a nsIFactory. The other registers a file location of a component. See nsIComponentRegistrar.idl. > Can I change existing code to use RegisterFactory instead of > RegisterFactoryLocation and will it still work? Depends on exactly what you are trying to do. Do you already have a nsIFactory? If so, converting to registerFactoryLocation() doesn't make too much sense.
