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));

(untested)


-- 
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
                                                  -- Benjamin Franklin


Reply via email to