Thanks Pritesh, I finally have the SDK eventing example working in OSE (using the C binding). But I would like this example to work in VirtualBox (not OSE),  so I have installed the version 2.2.2 and tried to execute 'tstXPCOMCCall', but I get the error " ./tstXPCOMCCall: FATAL: VBoxCGlueInit failed: /usr/lib/virtualbox/VBoxXPCOMC.so: pfnGetFunctions(0x20000) failed ". I suppose this is an incompatibility issue between both versions of VBox.. any ideas??<br>
<br>Eric<br><br><div class="gmail_quote">2009/5/6 Pritesh Kothari <span dir="ltr"><<a href="mailto:Pritesh.Kothari@sun.com" target="_blank">Pritesh.Kothari@sun.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div style="font-family: 'DejaVu Sans'; font-size: 9pt; font-weight: 400; font-style: normal;">Hi Eric,<br><br>
<br><br>
The example was updated recently for the changes in the trunk, can you please tell which version of SDk you are using?<div><br><br>
<br><br>
On Tuesday 05 May 2009 20:10:52 Eric Ros wrote:<br>> Hi,<br>><br>> I'm trying to monitor VBox events using the recently added C binding of the<br>> SDK. I'm following an example (tstXPCOMCCall.c) I found in the VBox OSE<br>

> repository, but it does not work. I get the error: "expected declaration<br>> specifiers or ‘...’ before ‘nsIEventQueue’". In the file "VBoxXPCOMCGlue.h"<br>> there is a reference to the header "VBoxCAPI_v2_5.h" (where nsIEventQueue<br>

<br>
<br><br></div>
VBoxCAPI_v2_5.h is automatically generated when you compile the OSE version in the following directory:<br><br>
<br><br>
out/linux.<arch>/<debug/release>/bin/sdk/bindings/xpcom/include/<br><br>
<br><br>
I would recommend you use the XPCOM C++ binding as using EventQueues and XPCOM in C is not so pretty unless you have knowledge of how vtables work in C and preety good reason not to use C++.<br><br>
<br><br>
if you are still stuck do post your code so that i can help you out.<br><br>
<br><br>
Regards,<br><font color="#888888">Pritesh</font><div><br><br>
<br><br>
<p style="margin: 0px; text-indent: 0px;"><br></p><br><br>
> may be defined) but I did not found it anywhere, I have the 2_2 instead.<br>> Can anybody help me?<br>><br>> thanks in advance,<br>><br>> Eric Ros<br><br>
<br><br>
<p style="margin: 0px; text-indent: 0px;"><br></p><br></div></div>
</blockquote></div><br>