我这几天都在研究如何解决这个问题了。真让我晕呀!
代码如下:
for (int i=0;i<htmA.frames.length;i++)
{
object numid =i;
mshtml.IHTMLDocument2 htmB = (mshtml.IHTMLDocument2) htmA.frames.item(ref numid);就是提示mshtml.IHTMLDocument2 htmB = (mshtml.IHTMLDocument2) htmA.frames.item(ref numid);无法转换。