| Dart Home | PowerTCP Winsock for ActiveX | Custom Development | Reply | PowerTCP Winsock for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Winsock for ActiveX Topic: Receive Byte arrays in VB & Socket Blocking |
| Eric Morehouse From: Irvine, CA USA Posts: 2 Member Since: 09/22/03 |
posted September 22, 2003 4:48 PM I'm evaluating your WinSocket PowerTCP control. I'm building a VB6 Server and VB4 16 bit client. 1) I have byte array data on both sides and I am try to pass the byte array across the socket. In the OnRecv event, I can debug the vRecData variant variable and see the byte data, but when I try to use the hmemcpy API to copy the data from vRecData to a byte array, I don't get the correct data in the resulting byte array. I have tried both the OnRecv and OnRecvAlt events. Do you have a method of moving the data or an example. 2) I've looked through you examples, but can't find an example of making a blocked connection. I would like the VB client to issue a message to the server and have the client wait for the Server's response before continueing execution. Do you have an example. Thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted September 22, 2003 5:01 PM I assume that you are using PowerTCP C++ Professional since you mentioned 16 bit. If so, please post further questions in the appropriate forum (This one is for the Winsock Tool) Answers to your questions: 1) The TCP Client (also called Blaster I think) implements the VarDataType property. Check the OnRecv event on the Main form. 2) You'd have to set flags in the events, then then following: Do While FlagsNotSet DoEvents Loop |
| Reply | PowerTCP Winsock for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|