delphi的MIDAS编程时,使用了SocketConnection,
当我SocketConnection1.Connected:=True时,总是报错:“object not available:{GUID}"  ,
我的scktsrvr.exe 也打开了。还是不行!重新注册midas.dll后也不行

解决方案 »

  1.   

    SocketConnection1是不是自己声明继承的?你创建没有?
    object not available提示不可用
      

  2.   

    {GUID}这个GUID是你的远程对象的ProgID,即类似于:{F9031067-B9AE-45BE-8FD8-44E1DEAF9372}
      

  3.   

    检查下属性里的ServerGUID是否合法
      

  4.   

    SocketConnection 已经创建 !如何重新注册GUDI
      

  5.   


    SocketConnection1.Connected:= false;
    SocketConnection1.Host:='机器名';
    SocketConnection1.Address:= '机器IP';
    SocketConnection1.ServerName:= '你建的远程服务器';
    SocketConnection1.Port:= 211;
    SocketConnection1.LoginPrompt:= false;
    SocketConnection1.Connected:= true;
      

  6.   


    SocketConnection1.Connected:= false;
    SocketConnection1.Host:='机器名';
    SocketConnection1.Address:= '机器IP';
    SocketConnection1.ServerName:= '你建的远程服务器';
    SocketConnection1.Port:= 211;
    SocketConnection1.LoginPrompt:= false;
    SocketConnection1.Connected:= true;
      

  7.   

    1、你服务器有没有创建
    2、你的SocketConnection的Address有没有填好?