R
Richy
Hi,
I'm using a winsock active-x component in a C# program.
I can send data using the following:
byte[] buffer = new byte[10];
axWinsock1.SendData( buffer);
But to receive isn't as easy.
The prototype is show below:
axWinsock1.GetData( ref object data, object type, object
MaxLen)
I cannot pass buffer in as a parameter, see below.
axWinsock1.GetData( ref buffer, buffer.GetType(), 10 );
The compiler complains that it is expecting a reference to
an object as the first parameter. But it doesn't
complain about the send equivalent which is also of type
object, see below:
axWinsock1.SendData( object data )
Any one know how I would receive using axWinsock1.GetData
into an array of bytes?
Richy.
I'm using a winsock active-x component in a C# program.
I can send data using the following:
byte[] buffer = new byte[10];
axWinsock1.SendData( buffer);
But to receive isn't as easy.
The prototype is show below:
axWinsock1.GetData( ref object data, object type, object
MaxLen)
I cannot pass buffer in as a parameter, see below.
axWinsock1.GetData( ref buffer, buffer.GetType(), 10 );
The compiler complains that it is expecting a reference to
an object as the first parameter. But it doesn't
complain about the send equivalent which is also of type
object, see below:
axWinsock1.SendData( object data )
Any one know how I would receive using axWinsock1.GetData
into an array of bytes?
Richy.