怎样将本地运行正常的DLL做成DCom?
zzj 2000-11-15 10:08:00 Server Win2000,Client Win98/Win2000
我的DL在本地运行正常,就仅仅一个函数(我作测试)
Public Function GetName() As String
GetName="Ok!Ok!"
End Function
我的操作:
1:在服务器上运行Racmgr32.exe,在Client Access页中选中Allow All
Remote Creates
2:运行服务器上Dcomcnfg.exe将他设置成本机启用的DCom并将所有的权限设成EveryOne
3:将.DLL和.VBR文件拷贝到客户端
4:在客户端运行Clireg32.exe 注册并设置成远程DCom.
5:在客户端运行Racmgr32.exe,在 Server Connection 页中选中Dcom并输入
正确的服务器名称
6:在客户端运行Dcomcnfg.exe将他设置远程有效的DCom及服务器(实际上运行了第4步后可以不第6步,自动做了)
现象:dim objTemp as prjTest.clsTest正确
Set objTemp=Createobject("prjTest.clsTest") 'Activex 不能创建对象
?为什么?