sorry that i wasnt able to convey what i want. i am trying to do that again
yes i am using the javascript to access the XPCOM components. well what i
want to do is that i have a native code (independent of the interfaces
available in mozilla) i want it to have an IDL for that native code. Till
this portion its fine but my problem is that i am not getting the point as
to how do i access the component of my Native code using Javascript. i hope
i am able to explain it now.

for eg : if i want to access the nsILocalFile Interface in the mozilla i
call something like

 var aFile =
Components.classes["@mozilla.org/file/local;1"].createInstance();

where @mozilla.org/file/local;1 is used to call the nsiLocalFile interface.
so what i wanted is if i have an interface for my code how do i access it. i
mean lets say the interface is "nsIMyFile" and its stored in c:\shiva\  so
how do i call this interface and load its components to access the native
code using XPCOM in javascript

thanks
shiva



Reply via email to