我現在手里有段VB的程式在XP系統下能正常運行,呼叫的是Prodave6.dll,現在要換到WIN7 32位電腦上,運行不了,報編譯錯誤,找不到工程或庫,不知道怎么換成6.2的Prodave,希望各位大神給我大力指點,我是VB小白。QQ 3196188956 我是VB小白。如能幫忙,不甚感激。
uj5u.com熱心網友回復:
自己先頂一下uj5u.com熱心網友回復:
建議放在WIn7 32位電腦上的虛擬機(比如VMWare、VirtualBox、HyperV、……)下的WinXP中運行。uj5u.com熱心網友回復:
是因為修改起來太麻煩了嗎
uj5u.com熱心網友回復:
業界的通行做法。
uj5u.com熱心網友回復:
那個是“第三方dll檔案”啊!你要把那個dll檔案放在你的工程所在目錄中(除錯運行時)并雙擊工程檔案打開工程,
或者把那個dll檔案放到系統的system32目錄中。
uj5u.com熱心網友回復:
你看看你的“能正確運行”的電腦,它的system32目錄或者程式所在目錄,肯定有Prodave6.dll這個檔案。你把它復制到你的Win7系統的電腦中去!
uj5u.com熱心網友回復:
Prodave6.dll 是Windows 系統檔案,是支持 Win7 的。你把原機上的檔案復制到系統目錄中:C:\Windows\System (Windows 95/98/Me)
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)
uj5u.com熱心網友回復:
你看看你的“能正確運行”的電腦,它的system32目錄或者程式所在目錄,肯定有Prodave6.dll這個檔案。
你把它復制到你的Win7系統的電腦中去!
謝謝你的幫助,可我把6,.DLL這個檔案復制到System32里去后,運行時報“未找到方法或資料成員”,您知道為什么嗎
uj5u.com熱心網友回復:
Prodave6.dll 是Windows 系統檔案,是支持 Win7 的。你把原機上的檔案復制到系統目錄中:
C:\Windows\System (Windows 95/98/Me)
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)
復制到System32里去了 ,可是運行時報“編譯錯誤,未找到方法或資料成員”,不知道這是不是要改程式的啊
uj5u.com熱心網友回復:
Private Sub tmrTime_Timer()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()總是黃色的。。
uj5u.com熱心網友回復:
在64位Windows下: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
uj5u.com熱心網友回復:
在64位Windows下:
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
是32位的Win7,只有System32這個檔案夾,趙老師,你說我這個是得要改程式嗎,好像是得知道Prodave6.2的什么引數值的
uj5u.com熱心網友回復:
放在虛擬機下的WinXP中最穩妥。轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/54315.html
標籤:VB基礎類
下一篇:無效的程序呼叫或引數
