Bug in the SDK reference?

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
pwnall
Posts: 7
Joined: 29. May 2015, 02:16
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux 32/64-bit, Windows 7 64-bit
Location: Cambridge, MA, USA
Contact:

Bug in the SDK reference?

Post by pwnall »

The last sample in section 2.3.6.6 Array handling uses VT_IUNKNOWN. The headers don't seem to define that. Instead, a VT_UNKNOWN is defined.

Is this a typo in the SDK reference?
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Bug in the SDK reference?

Post by noteirak »

Where do you see this exactly? Not sure which file/document you're refering to.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
pwnall
Posts: 7
Joined: 29. May 2015, 02:16
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux 32/64-bit, Windows 7 64-bit
Location: Cambridge, MA, USA
Contact:

Re: Bug in the SDK reference?

Post by pwnall »

I downloaded the SDK from here:
http://download.virtualbox.org/virtualb ... 100309.zip

I used the PDF at docs/SDKRef.pdf. The code in question is the 3nd sample in section 2.3.6.6, which is the 2nd sample on page 41. This is the line in question:
SAFEARRAY *psa = g_pVBoxFuncs->pfnSafeArrayCreateVector(VT_IUNKNOWN, 0, 1);
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Bug in the SDK reference?

Post by noteirak »

Very good question, only the devs could answer that one. Does it work wiht VT_UNKNOWN instead of VT_IUNKNOWN?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
pwnall
Posts: 7
Joined: 29. May 2015, 02:16
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux 32/64-bit, Windows 7 64-bit
Location: Cambridge, MA, USA
Contact:

Re: Bug in the SDK reference?

Post by pwnall »

I got compilation errors when I used VT_IUNKNOWN. I wouldn't have noticed the issue otherwise.
Post Reply