用户名: 密码: 免费注册 忘记密码? 网站地图 | 加入收藏 | 设为首页
首页 | 新闻 | 工具 | 系统 | 办公 | 聊天 | 多媒体 | 网页 | 运营 | 平面 | 欣赏 | 数据库 | 程序 | 服务器 | 组网
网页 | 3dmax | Ghost | Windows Xp| Dreamweaver | photoshop | Flash | office | Alexa | Css | QQ | Asp | PHP | Jsp | Access
Flash MX 2004入门 | 网站推广策略 | CorelDRAW入门 | ASP学习 | 网站建设大师功 | Word入门
  iTbulo.com > 学院 > 程序开发教程 > ASP教程 > ASP开发技巧 > 文章正文
在ASP页里面注册DLL的VBScript CLASS
iTbulo.COM 2007-3-26 天极Yesky()

’---------------------------------------------

  ’目的: 添加一个DLL项目

  ’参数: strPath: DLL文件地址

  ’ blnReg: 添加后是否将其注册

  ’返回: 如果要求添加后注册,注册成功就返回1,注册失败返回0,已经有该项目并注过册就返回-1

  ’---------------------------------------------

以下是引用片段:
  public function AddNode(strPath , blnReg)
  dim objNewNode
  dim strStart
  dim objNode
  strStart = "0"
  set objNode = SelectNode(strPath)
  if objNode is nothing then
  if Reg(strPath , true) then
  strStart = "1"
  AddNode = true
  else
  AddNode = false
  end if
  set objNewNode = s_objXml.createElement("Dll")
  call objNewNode.setAttribute(s_strAttributeName , strStart)
  objNewNode.Text = strPath
  call s_objNodeRoot.appendChild(objNewNode)
  call s_objXml.save(s_strXmlPath)
  else
  if blnReg then
  if objNode.Attributes.getNamedItem(s_strAttributeName).nodeValue = "1" then
  AddNode = true
  else
  if Reg(strPath , true) then
  objNode.Attributes.getNamedItem(s_strAttributeName).nodeValue = "1"
  call s_objXml.save(s_strXmlPath)
  else
  AddNode = false
  end if
  end if
  else
  AddNode = false
  end if
  end if
  end function


上一页  [1] [2] [3] [4] 下一页

文章搜索
相关资讯
相关文章 相关下载
新手入门:防范SQL注入攻击的新办法
ASP调用SQL Server视图和存储过程
入门教程:ASP设计常见问题及解答精要
用Dreamweaver+ASP实现网页分页
ASP:Asp编程实现计算页面执行时间
焦点信息