Hi,
I'm having trouble calling the IHTMLFramesCollection2.item function in the
mshtml interop dll from a C# project. The original C++ declaration looks
like this,
HRESULT item(
VARIANT* pvarIndex,
VARIANT* pvarResult
);
Which in the mshtml interop dll is translated into,
System.Object item(ref System.Object pvarIndex )
I'd like to pass the number of a frame to the function but do not know how.
Any help is highly appreciated.
Thanks in advance,
Morten Olsen
Mattias Sj?gren - 04 Aug 2003 12:25 GMT
Morten,
>I'd like to pass the number of a frame to the function but do not know how.
object frameIndex = 42;
object frame = framesColl.item( ref frameIndex );
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.