寻求COM/DCOM高手,解决打包问题!(100分)

  • 主题发起人 主题发起人 justWORKER
  • 开始时间 开始时间
J

justWORKER

Unregistered / Unconfirmed
GUEST, unregistred user!
我使用delphi6+win2000+sql2000做了个三层程序,其中有几个文件使用了DCOM,所以很自然的在运行前需要注册这几个文件。 但奇怪的是。。。
我在我自己的机器上打包后完全正常,在别人的很干净的win2000的机器上也运行正常!
但是我在别人的WINXP的机器上注册不上去!不知为何?
我测试:如果我在该WINXP的机器上装了delphi6后,则一切正常!!!
现在我需要打包,关键是不知注册那几个文件到底需要什么东东??????
装delphi6到底向系统中做了什么手脚??? 我把delphi6说明中提到的*.bpl 全部复制到新机器上/system32也无济于事,midas.dll,qintf.dll,stdvcl40.dll 也都复制/system32并注册了, 可仍然不行呀!
急!!!!
前几天有人提示下载mdac_typ.exe安装,可我安装了,问题依旧!
请高手出马!!!
 
呵呵,你再多加些东西进包,我打过的,可以的,打过,再加上程序大概30多M
 
楼上的高手,到底多加那些东西呢? 请明示!
 
在 winXp 上我多次遇到此问题。
后来解决的办法是:
1 把 midas.dll 复制到 windows/system32
2 把下面的文字保存成 winxp.reg 文件,然后导入注册表。 (起码我用此方法解决了2台安装 WinXP的 机器,WinXP 默认是安装在 C 盘的,如果在其他盘,则要作相应修改)
Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DSBase 1"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINDOWS//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DSBase.1"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/VersionIndependentProgID]
@="Borland.Midas_DSBase"



[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DSCursor 1"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINDOWS//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DSCursor.1"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/VersionIndependentProgID]
@="Borland.Midas_DSCursor"




[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DatapacketWrite"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINDOWS//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DatapacketWrite.1"




[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DatapacketRead"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINDOWS//SYSTEM32/MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DatapacketRead.1"



[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}]
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0]
@="Borland Midas type library"
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/0]
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/0/win32]
@="C://WINDOWS//SYSTEM32//MIDAS.DLL"
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/FLAGS]
@="0"
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/HELPDIR]
@="C://WINDOWS//SYSTEM32"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DSBase 1"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINDOWS//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DSBase.1"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/VersionIndependentProgID]
@="Borland.Midas_DSBase"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DSCursor 1"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINDOWS//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DSCursor.1"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/VersionIndependentProgID]
@="Borland.Midas_DSCursor"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DatapacketWrite"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINDOWS//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DatapacketWrite.1"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DatapacketRead"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINDOWS//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DatapacketRead.1"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}]
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0]
@="Borland Midas type library"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/0]
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/0/win32]
@="C://WINDOWS//SYSTEM32//MIDAS.DLL"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/FLAGS]
@="0"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/HELPDIR]
@="C://WINDOWS//SYSTEM32"

-------------------------------------------------------------------------------
下面这个是 Win2000 的,也一起放出来(不过庆幸的很,在 win2000 下面我从来就不需要导入注册表,没有验证此文件的正确性)
Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DSBase 1"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINNT//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DSBase.1"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/VersionIndependentProgID]
@="Borland.Midas_DSBase"



[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DSCursor 1"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINNT//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DSCursor.1"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/VersionIndependentProgID]
@="Borland.Midas_DSCursor"




[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DatapacketWrite"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINNT//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DatapacketWrite.1"




[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DatapacketRead"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINNT//SYSTEM32/MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DatapacketRead.1"



[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}]
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0]
@="Borland Midas type library"
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/0]
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/0/win32]
@="C://WINNT//SYSTEM32//MIDAS.DLL"
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/FLAGS]
@="0"
[HKEY_CLASSES_ROOT/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/HELPDIR]
@="C://WINNT//SYSTEM32"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DSBase 1"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINNT//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DSBase.1"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA1-591C-11D0-BF52-0020AF32BD64}/VersionIndependentProgID]
@="Borland.Midas_DSBase"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DSCursor 1"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINNT//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DSCursor.1"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA3-591C-11D0-BF52-0020AF32BD64}/VersionIndependentProgID]
@="Borland.Midas_DSCursor"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DatapacketWrite"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINNT//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA5-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DatapacketWrite.1"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}]
@="Borland Midas DatapacketRead"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}/InProcServer32]
@="C://WINNT//SYSTEM32//MIDAS.DLL"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/CLSID/{9E8D2FA7-591C-11D0-BF52-0020AF32BD64}/ProgID]
@="Borland.Midas_DatapacketRead.1"




[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}]
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0]
@="Borland Midas type library"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/0]
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/0/win32]
@="C://WINNT//SYSTEM32//MIDAS.DLL"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/FLAGS]
@="0"
[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{83F57D68-CA9A-11D2-9088-00C04FA35CFA}/1.0/HELPDIR]
@="C://WINNT//SYSTEM32"



 
楼上的,用Regsvr32.exe midas.dll ,不行吗?一定要导入注册表?
 
非常感谢阿舍大虾,
我马上去试试,
 
TO pcplayer.
用 regsvr32.exe 我没有试过。也不知道是否可行。
 
自己注册如此麻烦呀。
 
拷贝到C:/windows/system32下就可以了,不用自己注册,看看TClientDataSet源代码,他会自动去寻找midas.dll并注册的。
 
经过我的试验,阿舍大虾提供的成功了,
谢谢
 

Similar threads

回复
0
查看
848
不得闲
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
后退
顶部