帮忙看看这段代码!!!!在线等待!!

dr7801 2002-08-12 01:02:34
Private m_asp As CAspParser
Private WithEvents m_htmlDoc As HTMLDocument
Private m_htmlWindow As HTMLWindow2
Private m_htmlForm As HTMLFormElement
Private m_strCurPath As String

' Function Declaration
Private Declare Function PathIsURL Lib "shlwapi.dll" Alias "PathIsURLA" (ByVal strPath As String) As Boolean
Private Declare Function PathIsRelative Lib "shlwapi.dll" Alias "PathIsRelativeA" (ByVal strPath As String) As Boolean
Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long

Private Sub Form_Load()
WB.Navigate "about:blank"

' Create an instance of the ASP Offline Parser
Set m_asp = New CAspParser
m_asp.SetScriptControl SC
m_asp.Initialize
End Sub

我在运行程序时出现
“实时错误‘429’
ActiveX 部件不能创建对象”
不知道是怎么回事,谢谢!!!!!
...全文
45 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Go_home 2002-08-15
  • 打赏
  • 举报
回复
把DLL进行引用。
dr7801 2002-08-13
  • 打赏
  • 举报
回复
怎么样对一个类进行注册
online 2002-08-12
  • 打赏
  • 举报
回复
注册CAspParser
g8341 2002-08-12
  • 打赏
  • 举报
回复
试试其它方法
Set m_asp =createobject(CAspParser)

dr7801 2002-08-12
  • 打赏
  • 举报
回复
添加了
fjfzman 2002-08-12
  • 打赏
  • 举报
回复
没有添加引用安或部件。

7,789

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧