[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: HTMLSpanElement: OleAutomation problem

Looking at the typeinfo for HTMLSpanElement, I see that it has the
"restricted" flag set.

From the MSDN:
"The [restricted] attribute specifies that a library, or member of a module,
interface, or dispinterface cannot be called arbitrarily"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/midl/midl/r
estricted.asp

I think this may be the problem.

"Kövér Gábor" <koverg@xxxxxxxxx> wrote in message
news:b8ip73$c12$1@xxxxxxxxxxxxxxxx
> Hi,
>
> I have retrieved an MSHTML.HTMLSpanElement from an OleWebBrowser.
> (document.all.item(id)). My problem is that when I get a property (I have
> tried style and innerHTML) it always returns a Variant that has VT_BSTR
type
> and the String content is "[object]".
>
> Is this a missing feature in Variant or am I doing it in a wrong way?
>
> Thanks in advance,
>
> Gabor
>
>