Subj : Re: help needed : want to intereact from java script to C ++ and To : netscape.public.mozilla.jseng From : David Bradley Date : Fri Jan 17 2003 03:56 pm Nilesh wrote: > My problem is > 1. I am not able to get connectivity from javascript to c++ and > vice versa . > Has anyone done this . If yes please explain how to do this . > > 2. Also please tell me if It is possible to get js to c++ > connectivity without using Xpconnect . XPConnect is really the best way to go. Without it, you're left with using JSClass (JS -> C++) and the JS API (C++ -> JS). That's more work, but could be more efficient depending on what you are doing. And, unless you built some kind of framework (similar to XPConnect) it wouldn't be very general. If there's much interaction, you will have to deal with the determinant life times of objects of C++ and the non-determinant lifetimes of JS objects. All of this XPConnect would provide. David Bradley .