[vbox-dev] C++ COM Glue API

Sara Golemon sara at platform.sh
Wed Dec 21 17:02:12 UTC 2016

On Wed, Dec 21, 2016 at 12:16 AM, Frank Mehnert <frank.mehnert at oracle.com>

> On Dienstag, 20. Dezember 2016 10:02:17 CET Sara Golemon wrote:
> > I've been able to use the CAPI glue successfully, but as I'd prefer to
> use
> > C++, I'm hoping someone can point me to the right SDK.
> have a look at the VirtualBox base package tarball which you can download
> from here:
>   https://www.virtualbox.org/wiki/Downloads
> The directory src/VBox/Frontends/VBoxManage contains the command line tool
> which is IMO an excellent example for a simple VirtualBox API client using
> the C++ bindings.
> The Downloads page refers to the binary packages as "Base Downloads", but
I infer from the path you listed that you mean the source (which I've
already cloned from SVN).  That app does indeed seem to be using the C++
Glue, but it makes a number of assumptions about being built in-tree and it
doesn't look like the library is particularly reusable for third party apps.

Am I meant to copy all of include/ into my project? What parts of the
source do I need to build on various platforms to get the non-header
portions?  Or are those portions all contained in VBox*.(so|dylib|dll)
shared objects in the binary distributions?  I'm sure the answers are
obvious for someone working on the core of virtual box, but as an end user,
I'm left with something undocumented and terribly inobvious.

Don't get me wrong, VirtualBox seems to fit my needs quite well and I'm
super happy it's maintained and supported as an open source project, and if
the cross-platform C++ XPCOM/MSCOM part of the API just isn't ready for
prime-time, that's cool. I've actually started to build my own glue for the
narrow use-case I need and it's not that hard.  I would however, recommend
either expanding that section of the PDF or just removing it entirely since
it's not actually part of the SDK.

All the best,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20161221/efebb03b/attachment.html>

More information about the vbox-dev mailing list