I am trying to access (from a VB6 application) an unsigned 32 bit integer data type returned by the method of a C++ COM object. The part of an interface is declared like:
...
interface ICOMCanvasPixelBuffer : IUnknown
{
HRESULT GetWidth([retval][out] DWORD *pWidth);
HRESULT GetHeight([retval][out] unsigned __int32 *pHeight);
...
When I am browsing this interface using the Object Browser in VB6, it shows Function GetWidth() As <Unsupported variant type> hint for both of these methods.
Is there way to pass the unsigned integer data type to VB6?
VB6 does not have unsigned datatypes. Is the COM object yours? Just change the interface to a regular, signed int. Do you really have images with width and height over 2 billion?
If the COM object is not yours, sorry, its interface is not Automation-compliant. You can put together a proxy C++ object that would convert all the
unsigned‘s toint‘s.