Josh Soref wrote:
>>#include "xpcsample1.h"
>>#include "nsIXPConnect.h"
>>#include "jsapi.h"
>>#include "nsIGenericFactory.h"
>>#include "nsIServiceManager.h"
>>#include "nsCOMPtr.h"
>>
> 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...
You can pretty much bet most of the nsI prefixed headers are IDL generated.
I should have mentioned this, but if you're running Windows, you can
build just the xpconnect stuff for this sample.
1. Pull mozilla/client.mak
2. nmake -f client.mak pull_xpconnect
3. nmake -f client.mak depend_xpconnect
4. namke -f client.mak build_xpconnect
That will get you what you need for the sample.
If you're not running windows you can probably use the make files and
these tags to figure out what is needed.