Hello,
I am writing my first socket program in VC++, ,.net 2008.
I am able to create a socket, but I am not able to use the Send command properly.
unsigned char Tx_Packets[]= { 0x70,0xa1,0x00,0x00 };
int Tx_Length = 4;
new_socket->Send(Tx_Packets,Tx_Length,SocketFlags::None);
error C2664: 'int System::Net::Sockets::Socket::Send(cli::array<Type,dimension> ^,int,System::Net::Sockets::SocketFlags)' : cannot convert parameter 1 from 'unsigned char [4]' to 'cli::array<Type,dimension> ^'
Does anyone know how to properly format the array?
I am writing my first socket program in VC++, ,.net 2008.
I am able to create a socket, but I am not able to use the Send command properly.
unsigned char Tx_Packets[]= { 0x70,0xa1,0x00,0x00 };
int Tx_Length = 4;
new_socket->Send(Tx_Packets,Tx_Length,SocketFlags::None);
error C2664: 'int System::Net::Sockets::Socket::Send(cli::array<Type,dimension> ^,int,System::Net::Sockets::SocketFlags)' : cannot convert parameter 1 from 'unsigned char [4]' to 'cli::array<Type,dimension> ^'
Does anyone know how to properly format the array?