wxz
wxz

Reputation: 41

How to compile and "register" an XPCOM component with latest Gecko SDK in Windows?

I'm trying to follow this tutorial with the latest Gecko SDK(at this moment, the latest version is xulrunner-sdk 31.0). And I'd like to do it with Visual Studio 10 in a separate location.

Right now, I managed to get the code compiled though I'm not sure the dll is actually functional. I packed everything into an xpi package and installed it on Firefox for testing. It works for createInstance(); however, it fails when inquiry for the interface. the error message: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "JS frame :: debugger eval code :: :: line 1" data: no]

I looked into the dll with depend walk, and the only function show up is NSModule. Can anyone take a look on the files and let me know where the problem is? Thanks.

Upvotes: 2

Views: 259

Answers (0)

Related Questions