TClientSocket and TServerSocket

2008-08-05 12:30

The TClientSocket and TServerSocket components are available in BDS 2006 and Delphi 2007, however, they are by default, not installed.

  1. In order to install, from the menu, select Component, Install Packages.
  2. In the Install Packages dialog, click on Add.
  3. In the Add Design Package dialog, browse to your BDS\4.0\bin or RAD Studio\5.0\bin folder, typically at Program Files\Borland\BDS\4.0\bin or Program Files\CodeGear\RAD Studio\5.0\bin, and select dclsockets100.bpl, and click Open.
  4. Optionally - If you now click on the Components button, you'll see that a Components dialog that comes up, showing both TClientSocket and TServerSocket. Click on OK to dismiss the Components dialog.
  5. Click OK to dismiss the Install Packages dialog.

Note that the above are one-time installation instructions. You do not need to do this every time.

Now, to use the component, start a new VCL project, and you'll find TClientSocket and TServerSocket listed in the Internet category of the Tool Palette. Alternatively, click on the Tool Palette and start typing Socket slowly. Components containing the word Socket will be listed and the TClientSocket and TServerSocket components will appear. Drag and drop the component onto your form.

posted @ 2010-05-22 16:00  静.思  阅读(224)  评论(0编辑  收藏  举报