dll 可以为dcom吗(50分)

  • 主题发起人 主题发起人 autumn
  • 开始时间 开始时间
A

autumn

Unregistered / Unconfirmed
GUEST, unregistred user!
作dll的dcom 可以吗?
我尝试了一下 activex lab->auto object
注册后只能在本地运行,异地就报类没有注册。
我用dconfig.exe看到的只是exe。
有点糊涂。
 
DCOM必须是一个应用程序才能够从远程启动. DLL是不能够自动启动的
 
huizhang:
谢谢你的答复,回答宁我非常满意。by the way...
我的本意就是想不用装sql7 客户端,自己写一个dcom exe来启动和关闭
服务器的sql7.有什么好得建议呢?
 
huizhang我记得不是这样,好像NT的SP4以后版本支持DLL的DCOM,
虽然我也没试过.
 
Crane:
但是不知该如何配置。
 
我也想知道
 
不行吧
我试过Dll
没成功
 
AppServer 作成DLL应该不行吧
客户端是肯定可以的
--)我的本意就是想不用装sql7 客户端,自己写一个dcom exe来启动和关闭服务器的sql7
做一个APPSERVER用于启动和关闭SQLServer
客户端来调用就行了,用得着DLL吗?
 
NT4+SP3以后的可以.
 
服务器端是可以使用DLL的,但必须要有一个代理进程来启动它,例如MTS。
 
Dll 是可以做Iproc Server的, 不过做起来不是很容易的
注册的时候除了CLSID以外还必须有一个AppID, 远程的机器是通过下列方法启动它的:
1. If the AppID has a LocalService named value, COM uses the
OpenSCManager/StartService APIs to start the server.
2. If the CLSID has a LocalServer32 entry, COM starts the designated
process using CreateProcess or CreateProcessAsUser.
3. If the AppID's DllSurrogate named value is present yet empty, a
system-provided surrogate process (dllhost.exe) is started.
4. If the AppID's DllSurrogate named value is present and contains a
file name, the designated custom surrogate is started.
5. If the AppID's RemoteServerName named value is present, the
request is forwarded to the SCM on the designated host.
 
use MTS Explorer and Dcomcnfg.exe
 
是可以的,首先在Delphi中,新建一个TService,然后再
建立TRemoteDataModule,按照平常的做法就可以了.
但必须在Sp3以后才可以.
 
如果做成dll,怎么注册服务呢?
 
//作dll的dcom 可以吗?
当然可以,而且推荐使用DLL。
//我尝试了一下 activex lab->auto object,注册后只能在本地运行,异地就报类没有注册。
也许你在异地没有注册,可以这样做:注册->RegSrv32 XX.dll 注销->RegSrv32 /u XX.dll
//DCOM必须是一个应用程序才能够从远程启动. DLL是不能够自动启动的
我试过的,只要客户端一调用,服务端的DLL就自动启动为一个进程。
 
我想问一下做成dll和exe主要有什么有什么差异?
比如性能上,或是其他.
 
多人接受答案了。
 
后退
顶部