Installing TClientSocket and TServerSocket components for BDS2006 / Delphi 2007 / C++Builder 2006 / C++Builder 2007

Abstract: This article shows how to install the TClientStocket and TServerSocketcomponents, in the family of the products collectively known as BDS 2006, CodeGear Delphi 2007 and CodeGear C++Builder 2007.

Abstract: Installing TClientSocket and TServerSocket components for BDS 2006 / Delphi 2007 / C++Builder 2006 / C++Builder 2007


  • Product Name: Borland Delphi 7, Borland Developer Studio 2006, Borland C++Builder 2006, Borland Delphi 2006, CodeGear Delphi 2007, CodeGear C++Builder 2007
  • Product Component: IDE
  • Platform/OS Version: Supported platforms
  • Personality: Win32 personalities only

Description:

This article shows how to install the TClientStocket and TServerSocket components, in the family of the products collectively known as BDS 2006, CodeGear Delphi 2007 and CodeGear C++Builder 2007.

Resolution:

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.  


Author: Chee Wee Chua