Problem with late binding ?

  • Thread starter Thread starter Emilio
  • Start date Start date
E

Emilio

Dim pIEPRemote As New IPEndPoint(IPAddress.Any, 0)
Dim server = New UdpClient(8000)
pBytRxBuffer = server.Receive(pIEPRemote)

I am having some difficulty with the above 3rd line where
the editor is highlighting server.Receive as an error, which
goes like this:

"The targeted version of the .NET Compact Framework does not support
latebinding."

Any ideas?
 
Add Option Explicit to the top of your code and then go over your code
adding missing variable declarations. E.g. instead of

Dim server = New UdpClient(8000)
you will have
Dim server as New New UdpClient(8000)
 
Back
Top