我用的Delphi 7 中为什么没有ServerSocket与ClientSocket两个控件?好奇怪呀!!前辈们可以告诉我为什么吗?

解决方案 »

  1.   

    要自己手动安装,install component | add package添加dclsockets70.bpl
        Borland is deprecating the use of the TServerSocket
        and TClientSocket from the unit ScktComp. It is
        recommended that you use the Indy components for
        socket operations. The TServerSocket and
        TClientSocket will no longer be installed on the
        component palette by default. If you require the
        use of these components then you can install
        the design time package named dclsockets70.bpl,
        found in your bin directory. For deployment with
        runtime packages, you will need to deploy rtl70.bpl
        and any other required packages.
      

  2.   

    D7本来就有的,只是默认没有显示在控件面板上而已,用以下做法即可:
        Menu: Component/Install Packages/Add...,选择 Delphi Bin 文件夹下的 dclsockets70.bpl 文件,在 Internet 面板下就有了。