[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: VT_PTR+VT_VARIANT in OLE

VT_PTR seems to be a TYPEDESC thing for which there is no support.  There
is, however, some support for VT_BYREF.  See:

/**
* Create a Variant object which contains a reference to the data being
transferred.
*
* <p>When creating a VT_BYREF Variant, you must give the full Variant type
* including VT_BYREF such as
*
* <pre><code>short byRefType = OLE.VT_BSTR | OLE.VT_BYREF</code></pre>.
*
* @param ptr a pointer to the data being transferred.
* @param byRefType the type of the data being transferred such as
OLE.VT_BSTR | OLE.VT_BYREF
*
*/
public Variant(int ptr, short byRefType)

See also:

http://bugs.eclipse.org/bugs/show_bug.cgi?id=8727
http://bugs.eclipse.org/bugs/show_bug.cgi?id=10977


"Ralf Reinhardt" <reinh@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:b7mgh1$c2g$1@xxxxxxxxxxxxxxxx
> Hi!
> I am writing a small generator for OLE Wrappers and test it on MSHTML.
> there are a couple of classes where arrays of type VT_PTR+VT_VARIANT
> ( or VT_PRT+VT_BSTR etc.) are needed. Is there a way to create them with
> the non public modules?
>
>
> Cheers   Ralf
>