TClient/Server Socket controls does not exist in menu of BDS 2006 C++Builder

Abstract: TClient/Server Socket controls does not exist in menu of BDS 2006 C++Builder

  • Product Name: Borland Developer Studio
  • Product Version: 2006
  • Product Component: C++ Builder
  • Platform/OS Version: Windows

Description:

BCB 6 had TClientSocket and TServerSocket controls but BDS 2006 C++ Builder does not have these controls. If the project built in BCB6 were to be run in BDS 2006, this might result in getting error messages when it is read in. Any examples or direction on how to get this worked in BDS 2006?


Answer/Solution:

In BDS 2006, TServerSocket and TClientSocket no longer exists as visual controls on the tool palette. However, they can still be created and used at runtime. Event handlers can still be used but need to set them up at runtime.

One basic tutorial on setting up event handlers at runtime can be found here:

http://web.archive.org/web/20041010035703/http://bcbdev.com/faqs/faq1.htm

Alos, you can find a simple BDS 2006 demo project illustrating the basics here:

ftp://customer:SerV1c3@ftp4.borland.com/support/incoming/621614/621614.zip

In the demo project, Button1 instantiates the server socket and Button2 instantiates the client socket and tells it to connect to the server. Upon connection, an event handler fires. This should resolve the issue.


Author: Rajini Billahalli