Brian Teague wrote: > nsCOMPtr<nsIHttpAuthenticator> serv = do_GetService(contractid, &rv); > > Which implementation of nsIHttpAuthenticator is returned? The do_GetService() call takes a contract ID - not an interface ID. So it creates a _component_, then does a QI for nsIHttpAuthenticator. Thus, the only way to change the implementation is to change the contract ID (or to replace the implementation with a new component that has the same contractid, but that is probably a slippery slope.) Mark.
- Newbie COM / HTTP question Brian Teague
- Re: Newbie COM / HTTP question Mark Hammond
- Re: Newbie COM / HTTP question Brian Teague
