Other Programming Languages

NAVIGATION
CATEGORIES
LINKS
Home » Other Languages »» Other Programming Languages
  • [Delphi]Using Winsock In Delphi?!

    5 answers - 445 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

    Hello every one :D
    In Visual Basic i use to work with Winsock and i made some cool programs using this cooool tool :)
    But now i'm in Delphi and i quit VB for ever..And i would like to know how to use Winsock in Delphi (ClientSocket and ServerSocket VCL of corse and not the OCX tool).
    So does any body can help me :confused:

    Note: Let's make something clear..I'm not learning Winsock to make Trojans :sick:

  • No.1 | | 201 bytes | |

    I moved your thread from the Codebank. The codebank is for posting code samples, not questions. The appropriate forum for Delphi questions is the "Other Programming Languages", where I have moved it :)
  • No.2 | | 24 bytes | |

    Any Body!!!!!!!!!!!!!!!!
  • No.3 | | 947 bytes | |

    Sorry for the late response. I swear I replied to this yesterday :rolleyes:. Anyway, follow the instructions below to add the winsock active X control as a component in the delphi IDE:

    Start a new project and goto the component menu. Click on Import Active X Control
    From the list select Microsoft Winsock Control
    Click install.
    The winsock control should now show up in the component pallet in the ActiveX Controls pages. To use it, add it to the form like you would any other control. All the properties and methods are identicle to what they would eb in VB.

    As Delphi has direct access to the windows API, you don't actually need to import the winsock Active X control. You can use the Winsock API simply by including: uses Winsock at the top of your unit name. Although using the WinsockAPI is a little more complex than the Active X control, it has the benifits of being alot more powerful and flexible.
  • No.4 | | 1353 bytes | |

    :sick: Sorry for the late response. I swear I replied to this yesterday :rolleyes:. Anyway, follow the instructions below to add the winsock active X control as a component in the delphi IDE:

    Start a new project and goto the component menu. Click on Import Active X Control
    From the list select Microsoft Winsock Control
    Click install.
    The winsock control should now show up in the component pallet in the ActiveX Controls pages. To use it, add it to the form like you would any other control. All the properties and methods are identicle to what they would eb in VB.

    As Delphi has direct access to the windows API, you don't actually need to import the winsock Active X control. You can use the Winsock API simply by including: uses Winsock at the top of your unit name. Although using the WinsockAPI is a little more complex than the Active X control, it has the benifits of being alot more powerful and flexible.
    No..No..No..No...
    I don't want to use the Winsock OCX :sick:
    The only reason that made me learn Delphi is to get out from the OCXs hell :ehh:
    What i am asking is how to use the Client and Server Sockets (VCL)...
    I know how to make them connect and all, but how can i send text!!
    (Maybe you didn't understand what i mean because of my not so good english) :blush:
  • No.5 | | 579 bytes | |

    I don't know of any Winsock Components. But like I said in my previous post, you can gain access to the Winsock API (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/windows_sockets_start_page_2.asp), which is basically what the Winsock ActiveX control is a wrapper for, by adding uses Winsock in your unit.

    After some Googling I did find these links which may be of some use though:

    http://delphi.about.com/od/networking/l/aa112602a.htm
    http://www.felix-colibri.com/papers/web/socket_programming/socket_programming.html

Re: [Delphi]Using Winsock In Delphi?!


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 0 =
SPONSORED
QUESTION

SPONSORED
VISUAL BASIC TECHNOLOGIES