Ramgopal wrote:
> I have been trying to get the sample that comes with XPCOM
> "http://lxr.mozilla.org/mozilla/source/js/src/xpconnect/sample" to work. I
> see that there are a lot of dependencies like
>
> #include "xpcsample1.h"
> #include "nsIXPConnect.h"
> #include "jsapi.h"
> #include "nsIGenericFactory.h"
> #include "nsIServiceManager.h"
> #include "nsCOMPtr.h"
>
> I am finding it difficult to locate these files. Is there some central
> location or an archive (zip) that contains all the files at one place. I
> basically need the XPCOM and sample source code.
some .h files may actually be generated from .idl ... eg
/js/src/xpconnect/sample/xpcsample1.idl
for idl you'll need to run the xpidl compiler...
generally it's a good idea to build based on a mozilla tree and not just grabbing
files...
David Bradley wrote:
> Go to -> http://lxr.mozilla.org/seamonkey/ It has a file search and will
> show you the path to the file.
yes lxr.mozilla.org/seamonkey/find (?string=filename) and lxr.mozilla.org/mozilla/find
(includes webtools and security...)