-
Jul 25th, 2005, 08:08 PM
#1
Thread Starter
Lively Member
-
Jul 25th, 2005, 08:31 PM
#2
-
Jul 26th, 2005, 03:38 PM
#3
Thread Starter
Lively Member
Re: Using Winsock In Delphi?!
-
Jul 29th, 2005, 02:07 AM
#4
Re: Using Winsock In Delphi?!
Sorry for the late response. I swear I replied to this yesterday . 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.
-
Jul 29th, 2005, 03:05 PM
#5
Thread Starter
Lively Member
Re: Using Winsock In Delphi?!
Originally Posted by visualAd
Sorry for the late response. I swear I replied to this yesterday . 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
The only reason that made me learn Delphi is to get out from the OCXs hell
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)
Last edited by Shady Soft; Jul 29th, 2005 at 03:19 PM.
-
Jul 31st, 2005, 05:33 PM
#6
Re: [Delphi]Using Winsock In Delphi?!
I don't know of any Winsock Components. But like I said in my previous post, you can gain access to the Winsock API, 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/...ogramming.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|