Sun, 10 Feb 2002 08:01:07 UTC Christian Biesinger <[EMAIL PROTECTED]>
wrote:
> J. Schlatter wrote:
> > When I tried to compile it, I got an error in the function
> > nsIEventQueueService.GetThreadEventQueue(PRThread,PLEventQueue)
> > because this function now expects an nsIEventQueue and not a
> > PLEventQueue.
> >
> > What is the difference between them and how can I fix this?
>
> You can create a nsIEventQueue like this:
> nsresult rv;
> nsCOMPtr<nsIEventQueue> eq =
> do_CreateInstance("@mozilla.org/event-queue;1", &rv);
> if (NS_FAILED(rv))
> return rv;
>
> Now eq is a pointer to the queue. To pass it to GetThreadEventQueue:
>
> eqs->GetThreadEventQueue(&thread, getter_Addrefs(eq));
I have already done this (without the "getter_Addrefs()"), this is not
the problem. The problem is that the rest of the program expects a
PLEventQueue and not a nsIEventQueue.
Jens