我现在手里有段VB的程序在XP系统下能正常运行,调用的是Prodave6.dll,现在要换到WIN7 32位电脑上,运行不了,报编译错误,找不到工程或库,不知道怎么换成6.2的Prodave,希望各位大神给我大力指点,我是VB小白。QQ 3196188956 我是VB小白。如能帮忙,不甚感激。
解决方案 »
- VB 如何实现自动过滤不相符的数据
- 弱弱的问题 :如何取当前时间来作为文件名?并考虑到跨年月日的问题
- 模拟鼠标左键 天龙八部 无效??
- 字符串转换问题!
- 为何不能用new Text1创建一个文本框实例
- datagrid控件用sort排序后,滚动条位置显示有误,怎么解决?
- 各位大侠救命,我在vb的Project菜单找不到添加Data Report(报表)的菜单项,
- 在线等待(access数据语句问题)
- 马上要过年了,大家帮我解决这个问题。vb+dbf数据库,怎么彻底删除一条记录??
- 急急急急如何把mac地址与ip地址对应起来
- [求助] 想要做个(收款收据)自动打印,求大神帮忙
- 无效的过程调用或参数
你要把那个dll文件放在你的工程所在目录中(调试运行时)并双击工程文件打开工程,
或者把那个dll文件放到系统的system32目录中。
你把它复制到你的Win7系统的电脑中去!
C:\WINNT\System32 (Windows NT/2000)
C:\Windows\System32 (Windows XP, Vista)
C:\Windows\System32 (Windows 7/8/2008r2)
C:\Windows\SysWOW64 (Windows 7/8/2008r2)
On Error Resume Next
'tmrTime.Enabled = False
Dim S7_flag As Long
Timer_Counter = Timer_Counter + 1
PLC_mnl
If (Timer_Counter = 1) Then
If (Read1_Power = True) Then
staMessage.Panels(1).Text = "功率表1读成功!"
Else
staMessage.Panels(1).Text = "功率表1读失败!"
End If
End If
If (Timer_Counter = 2) Then
If (Read2_Power = True) Then
staMessage.Panels(1).Text = "功率表2读成功!"
Else
staMessage.Panels(1).Text = "功率表2读失败!"
End If
End If
If (Timer_Counter = 3) Then
If (Read3_Power = True) Then
staMessage.Panels(1).Text = "功率表3读成功!"
Else
staMessage.Panels(1).Text = "功率表3读失败!"
End If
End If
If (Timer_Counter = 4) Then
If (Read4_Power = True) Then
staMessage.Panels(1).Text = "功率表4读成功!"
Else
staMessage.Panels(1).Text = "功率表4读失败!"
End If
End If
If (Timer_Counter = 5) Then
If (Read5_Power = True) Then
staMessage.Panels(1).Text = "功率表5读成功!"
Else
staMessage.Panels(1).Text = "功率表5读失败!"
End If
Timer_Counter = 0
End If
tmrTime.Interval = 500
'tmrTime.Enabled = True
ReadAll
End Sub
运行时第一行Private Sub tmrTime_Timer()总是黄色的。。
64位exe和dll在目录c:\windows\system32目录下;
32位exe和dll在目录c:\windows\syswow64目录下;
所以要注意:
在win64位系统下注册32位ocx或dll需要将32位ocx或dll拷贝到c:\windows\syswow64\目录下。
且注册要用c:\windows\syswow64\regsvr32 xxxxxxx.ocx或dll