哪位大虾看过这个教程?http://www.vchelp.net/itbookreview/view_paper.asp?paper_id=1156我调试了一下程序。只能在本机器上运行(win2000)。两台机器(win2000)无法完成,总是创建对象实例失败。
我已经按照文档配置dcomconfig.也把防火墙关掉。不知道哪里出了问题?rpc服务已经开通,但不知道rpc断口有没有封掉 怎么判断rpc端口是否被封?谢谢

解决方案 »

  1.   

    你试试这个例子
    http://www.codeguru.com/Cpp/COM-Tech/activex/article.php/c5547/
      

  2.   

    楼上的 我尝试了一下 也是本机器可以。双机不行。
    1。If you want to run the client on a different machine, check the following: 
    "Ping server-machine-name" is fine. 
    2。Run dcomcnfg.exe on server machine to add the user account that runs the client.exe. 
    3。Copy proxy.dll to the client machine and register it by regsvr32.exe. 1,3条 我已经照做。第2条怎么完成?谢谢
      

  3.   

    在 开始->运行 里键入dcomcnfg回车
      

  4.   

    把Server缺省的RPC_C_AUTHN_LEVEL_PKT改为RPC_C_AUTHN_LEVEL_DEFAULT或者RPC_C_AUTHN_LEVEL_NONE(和Client一致)