Talk:Embedding/NewApi/XpcomAccess
Jump to navigation
Jump to search
Hmm... I used the following lines of code to get to nsICategoryManager and it worked fine (after adding the necessary includes), why do I need to use the interface requestor?
nsCOMPtr<nsICategoryManager> catman; catman = nsGetServiceByContractID(NS_CATEGORYMANAGER_CONTRACTID);