Hi, I am developing a firefox protocol handler using gecko sdk 1.8.0. I tried but failed. So I downloaded mozilla source code, and get help from its icon protocol handler.
In this, it has used nsIInputstreamPump interface, but in gecko sdk 1.8.0, there is no nsIInputstreamPump.h file. So I downloaded it. But below code failed given in nsIconChannel.cpp file. nsresult rv; nsCOMPtr<nsIInputStreamPump> mPump; mPump = do_CreateInstance(NS_INPUTSTREAMPUMP_CONTRACTID, &rv); The error code it returns is 0x80004002 (NS_ERROR_NO_INTERFACE). And mPump becomes NULL. Now I don't understand why does it fail. I saw using xpcomviewer the inputstreampump component. It is there. I looked on the web, but no help. Javascript code available, but they not working tool. What is the problem? How can I solve this? Is there any change in gecko sdk 1.8.0, because lots of header/idl files are not in it. Any help would be highly appreciated. Thank you in advance. _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
