Hi,

Thank you very much for help. I have registered it with the Component Manager:

 compMgr.registerFactoryLocation(CIBERAULA_CID,
                                        "Ciberaula converter service",
                                        CIBERAULA_CONTRACTID,
                                        fileSpec, location, type);


CID and COTRACTIDs are:


const CIBERAULA_CID = Components.ID('{4ce08a9b-cc30-4167-9a6f-474ec86fafa0}');
const CIBERAULA_CONTRACTID = "@mozilla.org/streamconv;1?from=text/x-ciberaula-html&to=text/html";


I can see the component registered in compreg.dat:

[COMPONENTS]
rel:ciberaulaConverter.js,1068603342877
rel:imgicon.dll,1068490506761,gkgfx.dll xpcom.dll nspr4.dll plc4.dll plds4.dll
rel:xppref32.dll,1068578727592,js3250.dll xpcom.dll nspr4.dll plc4.dll plds4.dll


I dont see the CONTRACTID registered under the [CONTRACTID] serction. Am I missing some thing?

Regards,

Raj


What is registry? how to add the contatid to registry?


You add it as an XPCOM component, with a specific contractid of @mozilla.org/streamconv;1?from=FROM_MIME_TYPE&to=TO_MIME_TYPE


I have registered it with the Component Manager:


 compMgr.registerFactoryLocation(CIBERAULA_CID,
                                        "Ciberaula converter service",
                                        CIBERAULA_CONTRACTID,
                                        fileSpec, location, type);


CID and COTRACTIDs are:


const CIBERAULA_CID = Components.ID('{4ce08a9b-cc30-4167-9a6f-474ec86fafa0}');
const CIBERAULA_CONTRACTID = "@mozilla.org/streamconv;1?from=text/x-ciberaula-html&to=text/html";


I can see the component registered in compreg.dat:

[COMPONENTS]
rel:ciberaulaConverter.js,1068603342877
rel:imgicon.dll,1068490506761,gkgfx.dll xpcom.dll nspr4.dll plc4.dll plds4.dll
rel:xppref32.dll,1068578727592,js3250.dll xpcom.dll nspr4.dll plc4.dll plds4.dll


I dont see the CONTRACTID registered under the [CONTRACTID] serction. Am I missing some thing?

Regards,

Raj

_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to