I don't know what you are trying to do, but I doubt that using WINSOCK is the easiest way to do what you want.
You should also notice that the article is from 2007, so the support of it might be lacking.
You are probably better off using
System.Net.Sockets Namespace[
^]
You can find some basic examples at MSDN. See
Socket Code Examples[
^]
That said. you should make sure that that you build your code for 'x86'. The default is 'Any CPU' so this could create a problem on a 64-bit system.