[vbox-dev] C binding and event queue

Eric Ros eros at abiquo.com
Fri May 8 14:53:17 GMT 2009


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??

Eric

2009/5/6 Pritesh Kothari <Pritesh.Kothari at sun.com>

> 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/20090508/c56ee1d9/attachment.html>


More information about the vbox-dev mailing list