[vbox-dev] C binding and event queue

Pritesh Kothari Pritesh.Kothari at Sun.COM
Wed May 6 00:37:04 PDT 2009


Hi Eric,



The example was updated recently for the changes in the trunk, can you please 
tell which version of SDk you are using?



On Tuesday 05 May 2009 20:10:52 Eric Ros wrote:
> Hi,
>
> I'm trying to monitor VBox events using the recently added C binding of the
> SDK. I'm following an example (tstXPCOMCCall.c) I found in the VBox OSE
> repository, but it does not work. I get the error: "expected declaration
> specifiers or ‘...’ before ‘nsIEventQueue’". In the file "VBoxXPCOMCGlue.h"
> there is a reference to the header "VBoxCAPI_v2_5.h" (where nsIEventQueue



VBoxCAPI_v2_5.h is automatically generated when you compile the OSE version in 
the following directory:



out/linux.<arch>/<debug/release>/bin/sdk/bindings/xpcom/include/



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++.



if you are still stuck do post your code so that i can help you out.



Regards,
Pritesh






> may be defined) but I did not found it anywhere, I have the 2_2 instead.
> Can anybody help me?
>
> thanks in advance,
>
> Eric Ros






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090506/eab4c69a/attachment-0001.html 


More information about the vbox-dev mailing list