关于用VB.net控制Flashget的问题!
lumj 2004-01-31 09:52:31
flashget和netants都提供了API,通过这个可以控制它们,而且它们都提供了VB6的例程,现在我通过vb.net升级向导,升级它,可是却是下面这种效果,无法使用,有谁可以把它生成vb.net代码?
它通过数组pList,来批量加入网址和下载地址.这里最关键的是最后一句:objfg.AddUrlList(pList)!!就是这里会报错
可能是数组无法正确传入的问题,我记得我在一本书看过,VB6和VB.NEY,在这方面是有有不同的!希望能懂这VB6和VB.NET两方面的高手,解
Private Sub Command2_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command2.Click
Dim objfg As New JCCATCHLib.JetCarNetscape
Dim pList(4) As Object
'UPGRADE_WARNING: 未能解析对象 pList(0) 的默认属性。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"”
pList(0) = "http://www.amazesoft.com"
'UPGRADE_WARNING: 未能解析对象 pList(1) 的默认属性。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"”
pList(1) = "http://www.amazesoft.com/fgf087.zip"
'UPGRADE_WARNING: 未能解析对象 pList(2) 的默认属性。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"”
pList(2) = "FlashGet 0.87"
'UPGRADE_WARNING: 未能解析对象 pList(3) 的默认属性。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"”
pList(3) = "http://www.amazesoft.com/doc.zip"
'UPGRADE_WARNING: 未能解析对象 pList(4) 的默认属性。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"”
pList(4) = "FlashGet Documentation"
objfg.AddUrlList(pList)