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?
Bug in the SDK reference?
-
- 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?
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!
Manage your VirtualBox infrastructure the free way!
-
- 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?
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);
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);
-
- 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?
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!
Manage your VirtualBox infrastructure the free way!
-
- 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?
I got compilation errors when I used VT_IUNKNOWN. I wouldn't have noticed the issue otherwise.