| Dart Home | PowerTCP Winsock for ActiveX | Custom Development | Reply | PowerTCP Winsock for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Winsock for ActiveX Topic: How to sending a byte array with Delphi? |
| RichardScott richardscott@slackersconvention.com From: Brighton, United Kingdom Posts: 12 Member Since: 08/07/03 |
posted August 7, 2003 5:01 PM Hello, I recently registered the Winsock tool and it looks really good. I can connect and send strings with no problems. However I can't seen to send byte arrays under Delphi. I create an array of bytes: Bytes: array[1..25] of Byte; Connect, and try to send TCP1.Send(Bytes,25,false); But get the following error... Actual and formal params must be identical.. Does anyone have a little code snippit that could help? Thanks in advance, RichardScott. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 7, 2003 5:28 PM I'm sorry, but we don't have any experience using Byte arrays in Delphi. It looks to me like what Delphi call a Byte array is not really the same as other environments. I would suggest that you contact someone from Borland and ask them what the equivalent of the following VB code is: Dim bytes(4) as Byte |
| RichardScott richardscott@slackersconvention.com From: Brighton, United Kingdom Posts: 12 Member Since: 08/07/03 |
posted August 7, 2003 6:20 PM Hi, I've checked with a Borland developer and apparently the two statements: Dim bytes(4) as Byte :VB bytes: array[1..4] of Byte; :Delphi Are exactly the same thing..? Is there anyone else on your Dev team I could contact by mail? Or do you know of any other developers using your toolkit under Delphi I could contact? |
| RichardScott richardscott@slackersconvention.com From: Brighton, United Kingdom Posts: 12 Member Since: 08/07/03 |
posted August 7, 2003 6:22 PM Sorry forgot to add.. Do you have any code snippets that send anything other than strings using Delphi? Records for example? I'm very grateful for any help. Regards, RichardScott |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 7, 2003 7:19 PM Actually I am the only one here that uses Delphi. I wrote all the samples years ago, but saying the word "record" triggered a memory. There was one sample that I didn't write that was written by a Delphi expert that is no longer at Dart. You already have the sample. It's called "TCP Blaster" and it shows how to send Byte arrays and records. It has to do with VARIANTS, which VB uses automatically and is why it is so easy in VB. Please take a look at that sample and let me know if you have any problems! Sorry for misleading you. |
| RichardScott richardscott@slackersconvention.com From: Brighton, United Kingdom Posts: 12 Member Since: 08/07/03 |
posted August 8, 2003 8:05 AM That's better... All is well.. I can go to bed now. Thanks for the super fast responses. RichardScott |
| Reply | PowerTCP Winsock for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|