G
Guest
Hi,
I've got a class called Client that inherits from TcpClient. I've also got a
TcpListener set up, which then tries to convert the TcpClient received from
AcceptTcpClient to my Client class, eg:
Dim NewClient as Client = CType(Server.AcceptTcpClient, Client)
I've also tried with DirectCast, but neither work and they both throw
InvalidCastExceptions.
Thanks in advance for your help!
I've got a class called Client that inherits from TcpClient. I've also got a
TcpListener set up, which then tries to convert the TcpClient received from
AcceptTcpClient to my Client class, eg:
Dim NewClient as Client = CType(Server.AcceptTcpClient, Client)
I've also tried with DirectCast, but neither work and they both throw
InvalidCastExceptions.
Thanks in advance for your help!