我的电脑从Windows XP升级到Windows 7后,我运行了两个自动注册dll和ocx的exe.(一个是客户端,一个是服务器端)运行后编译程序,报错:Method or data member not found.错误提示如下图:
自动注册dll和ocx的代码如下:
服务器端:
[Bootstrap]
SetupTitle=Install
SetupText=Copying Files, please stand by.
CabFile=BDEProject.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1[Bootstrap Files]
[email protected],$(WinSysPathSysFile),,,6-18-98 12:00:00 AM,102912,6.0.81.69[Setup]
Title=BDE
DefaultDir=$(ProgramFiles)\BDE
AppExe=BDE.exe
AppToUninstall=BDE.exe[Setup1 Files]
[email protected],$(WinSysPath),,$(Shared),12-2-98 9:11:02 AM,143360,1.1.0.0
[email protected],$(WinSysPath),,$(Shared),1-31-98 1:25:22 PM,133120,1.1.0.0
[email protected],$(WinSysPathSysFile),,,5-7-98 12:00:00 AM,174352,4.0.993.4
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-12-00 3:21:44 AM,204296,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-12-00 3:22:38 AM,244232,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-8-99 1:24:49 AM,209408,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),8-28-03 5:20:48 PM,57344,1.0.0.0; The following lines may be deleted in order to obtain extra
; space for customizing this file on a full installation diskette.
;
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX客户端:
[Bootstrap]
SetupTitle=Install
SetupText=Copying Files, please stand by.
CabFile=BDEProject.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1[Bootstrap Files]
[email protected],$(WinSysPathSysFile),,,6-18-98 12:00:00 AM,102912,6.0.81.69[Setup]
Title=BDE
DefaultDir=$(ProgramFiles)\BDE
AppExe=BDE.exe
AppToUninstall=BDE.exe[Setup1 Files]
[email protected],$(WinSysPath),,$(Shared),12-2-98 9:11:02 AM,143360,1.1.0.0
[email protected],$(WinSysPath),,$(Shared),1-31-98 1:25:22 PM,133120,1.1.0.0
[email protected],$(WinSysPathSysFile),,,5-7-98 12:00:00 AM,174352,4.0.993.4
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-12-00 3:21:44 AM,204296,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-12-00 3:22:38 AM,244232,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-8-99 1:24:49 AM,209408,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),8-28-03 5:20:48 PM,57344,1.0.0.0; The following lines may be deleted in order to obtain extra
; space for customizing this file on a full installation diskette.
;
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
自动注册dll和ocx的代码如下:
服务器端:
[Bootstrap]
SetupTitle=Install
SetupText=Copying Files, please stand by.
CabFile=BDEProject.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1[Bootstrap Files]
[email protected],$(WinSysPathSysFile),,,6-18-98 12:00:00 AM,102912,6.0.81.69[Setup]
Title=BDE
DefaultDir=$(ProgramFiles)\BDE
AppExe=BDE.exe
AppToUninstall=BDE.exe[Setup1 Files]
[email protected],$(WinSysPath),,$(Shared),12-2-98 9:11:02 AM,143360,1.1.0.0
[email protected],$(WinSysPath),,$(Shared),1-31-98 1:25:22 PM,133120,1.1.0.0
[email protected],$(WinSysPathSysFile),,,5-7-98 12:00:00 AM,174352,4.0.993.4
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-12-00 3:21:44 AM,204296,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-12-00 3:22:38 AM,244232,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-8-99 1:24:49 AM,209408,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),8-28-03 5:20:48 PM,57344,1.0.0.0; The following lines may be deleted in order to obtain extra
; space for customizing this file on a full installation diskette.
;
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX客户端:
[Bootstrap]
SetupTitle=Install
SetupText=Copying Files, please stand by.
CabFile=BDEProject.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1[Bootstrap Files]
[email protected],$(WinSysPathSysFile),,,6-18-98 12:00:00 AM,102912,6.0.81.69[Setup]
Title=BDE
DefaultDir=$(ProgramFiles)\BDE
AppExe=BDE.exe
AppToUninstall=BDE.exe[Setup1 Files]
[email protected],$(WinSysPath),,$(Shared),12-2-98 9:11:02 AM,143360,1.1.0.0
[email protected],$(WinSysPath),,$(Shared),1-31-98 1:25:22 PM,133120,1.1.0.0
[email protected],$(WinSysPathSysFile),,,5-7-98 12:00:00 AM,174352,4.0.993.4
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-12-00 3:21:44 AM,204296,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-12-00 3:22:38 AM,244232,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),5-8-99 1:24:49 AM,209408,6.0.84.18
[email protected],$(WinSysPath),$(DLLSelfRegister),$(Shared),8-28-03 5:20:48 PM,57344,1.0.0.0; The following lines may be deleted in order to obtain extra
; space for customizing this file on a full installation diskette.
;
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
图片一地址:
http://www.taobao.com/view_image.php?pic=Wx0GGlFDXA1VUwMEWx0SCwkNGRFcVxxQW1UcCxMFRBkDCFdVV1cRRhpSRDhHCl1VR2tcUHAxKjISGwpWWmsDC0FdR1xFBgYV&title=suLK1DE%3D&version=2&c=MWQ4NTdjNTZhYTZmM2YxYjRmY2FiYWEzYmQwMzQ5M2E%3D图片二地址:
http://www.taobao.com/view_image.php?pic=Wx0GGlFDXA1VUwMAWx0SCwkNGRFcVxxQW1UcCxMFRBkDCFdVV1cRRhpWRDhHSwpRR2tsalAxKggIOCI7WmsDC0FeQV1FBgYV&title=suLK1DI%3D&version=2&c=MWQ4NTdjNTZhYTZmM2YxYjRmY2FiYWEzYmQwMzQ5M2E%3D
如果控件是带许可证的,那就麻烦了
如果真的这样,换成richbox即可
实在不行 你把你的控件在win7 的VB环境下 添加 然后看看行不行 不行的话只能在WIN7环境下 再做个控件了~
我也不知道为什么要用picturebox,我只是负责这个project小小的修改,如果要全部换成richbox怕改动量蛮大的原来在XP环境下运行是OK的啊,都运行N年了