Marius Mikucionis wrote: > Hi there! > I tried to get interface names in QueryInterface method > (I wanted to know what mozilla is trying to do with my component) > and noticed that nsComponentManager has nice function: > > nsresult CLSIDToContractID(nsCID *aClass, char* *aClassName, char* *aContractID); > > it gets class id and returns names of the class and contractID > - class identification in readable format. Note: QueryInterface deals in _IID_s, not _CID_s. > AFAIK it does not need to change aClass parameter. Probably true, yeah. > What is the reason for aClass parameter to be non-constant in this case? Like most things in nsIComponentManager, it just happened that way. > Should I bravely use reinterpret cast or smth else? NS_CONST_CAST is your friend here, I think. Mike
