You're on Windows? I ran into the same problem there. nsIDOMEvent.h has an
enum named ERROR, which also happens to be a #define somewhere in the
windows headers, so the compile pre-processor produces this non-sense:
enum { 0 = 0 };
You'll have to arrange things so that the compiler sees nsIDOMEvent before
it sees the windows headers. There maybe some way to play with #undef, but I
haven't tried.
nsIDOMWindow (get it via nsIWebBrowser::GetDOMWindow()) may implement some
interface(s) to let you pump events in... sorry I can't offer anything more.
> -----Original Message-----
> From: Mikey Alexander [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 16, 2001 6:28 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Problems with DOM Events
>
>
> I'm having two problems.
>
> First, I'm trying to send click events to HTML Elements.
> Specifically
> HTML Anchors. I assume I have to use dispatchEvent to do this.
>
> Second, I'm getting an ERROR in my compiles:
> #include "nsIDOMEvent.h"
>
> Thanks,
> Mikey
>
>