| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1644 人关注过本帖
标题:关于VB注册DLL的问题!【已解决】
只看楼主 加入收藏
yujimin
Rank: 1
等 级:新手上路
帖 子:66
专家分:0
注 册:2008-4-8
结帖率:100%
收藏
 问题点数:0 回复次数:1 
关于VB注册DLL的问题!【已解决】
我想用 Check1 在 c:\windows\system32\文件夹生成 Hash.dll 文件并注册。
也就是说当选择(点击)Check1的时候 文件 Hash.dll 释放到 c:\windows\system32\ 里面,当不选择(去掉对号) Check1 的时候,这个c:\windows\system32文件夹里的文件 Hash.dll 文件被删除并卸载
该如何实现呢?谢谢大家!


呵呵!!原来是这样的啊!!

Private Sub Check1_Click()
Dim app1() As Byte
If Dir("c:\windows\system32\Hash.dll") = "" Then  
  app1 = LoadResData(101, "CUSTOM")
  Open "c:\windows\system32\Hash.dll" For Binary As #2  
  Put #2, , app1
  Close #2
End If
Select Case Check1.Value
Case 0
  Shell "regsvr32 c:\windows\system32\Hash.dll /u /s"
  Kill "c:\windows\system32\Hash.dll"
Case 1
  Shell "regsvr32 c:\windows\system32\Hash.dll /s"
End Select
End Sub

[[it] 本帖最后由 yujimin 于 2008-6-7 20:41 编辑 [/it]]
搜索更多相关主题的帖子: windows DLL Hash 文件 dll 
2008-06-07 18:53
yujimin
Rank: 1
等 级:新手上路
帖 子:66
专家分:0
注 册:2008-4-8
收藏
得分:0 
呵呵!!原来是这样的!!

Private Sub Check1_Click()
Dim app1() As Byte
If Dir("c:\windows\system32\Hash.dll") = "" Then  
  app1 = LoadResData(101, "CUSTOM")
(101,"custom")字符串
  Open "c:\windows\system32\Hash.dll" For Binary As #2  
  Put #2, , app1
  Close #2
End If
Select Case Check1.Value
Case 0
  Shell "regsvr32 c:\windows\system32\Hash.dll /u /s"
  Kill "c:\windows\system32\Hash.dll"
Case 1
  Shell "regsvr32 c:\windows\system32\Hash.dll /s"
End Select
End Sub
2008-06-07 20:40
快速回复:关于VB注册DLL的问题!【已解决】
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021515 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved