Problem with late binding ?

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?
 
A

Alex Feinman [MVP]

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top