People, it's very serious, I really don't know what is going on with my
components!!!!
Hi All,
I modified the code of sample for debug purposes:
/* to use nsSample.js version, use "@mozilla.org/jssample;1" */
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var sample = Components.classes["@mozilla.org/sample;1"].createInstance();
sample = sample.QueryInterface(Components.interfaces.nsISample);
alert(sample); /*my debug*/
I followed the instructions on readme.txt:
"Because this sample is not part of the build system, you
have to do some things by hand. Build it like this:
1. Have a built tree.
2. Build SampleIDL.mcp, headers target. This should make an alias
to nsISample.h in dist:xpconnect (actual location in dist
does not matter).
3. Build SampleIDL.mcp, sample.xpt target. This makes sample.xpt.
Put an alias to sample.xpt in your Components folder.
4. Build a target of Sample.mcp. Make an alias to the resulting
shared lib in the components folder.
5. Run viewer or apprunner, and load "xpconnect-sample.html".
Things should work.
[EMAIL PROTECTED]
"
I tryed to execute the sample on Mozilla built tree and on Mozilla
folder (mozilla installed), and I have the following results
(to test this on Mozilla browser, I made a copy of the shared lib and
xpt files on Mozillas's Components folder)
======================================================
on mozilla built tree (running the viewer.app):
alert shows => [xpconnect wrapped nsISupports]
======================================================
on mozilla installed (running the mozilla browser):
alert shows => [xpconnect wrapped nsISample]
======================================================
Would you help me with this issue?
Thanks
Sidnei Frank
[EMAIL PROTECTED]