LandLord323

How is this byte [] byReturn = GetReceivedData(sock, ar); converted to VB

I have this.. but

Dim byReturn() As Byte = GetReceivedData(sock, ar)

returns Error 5 Value of type 'Byte' cannot be converted to '1-dimensional array of Byte'.


Re: Visual Basic General Trouble converting from c# to VB byte array

DMan1

it sounds like getreceived is only returning a single byte and not a byte array...

try DIm byReturn as Byte = GetRecievedData(sock,ar)