Missing API? Missing API? GhostWolf (Programmer) (OP) 1 Jul 09 14:24 I'd used the GetHostByName API a few weeks ago, successfully, but now I'm getting an "entry point not found" error message for WSock32.dll. Any ideas on what might have happened?I'm using VB6 sp6 on XP sp3, with all the latest updates.Thinking I'd messed up something in the GetHostByName call, I added WSAStartup and WSACleanup calls - and got the same error. RE: Missing API? GhostWolf (Programmer) (OP) 1 Jul 09 14:54 Well, looks like another silly mistake. I'm not getting the "entry point" error now - but I'm also not getting an IP address, even with the WSAStartup and WSACleanup calls.aaaaaarrrrgggghhhh. RE: Missing API? vb5prgrmr (Programmer) 1 Jul 09 19:42 See...http://vbnet.mvps.org/index.html?code/network/index.htmlGood Luck RE: Missing API? GhostWolf (Programmer) (OP) 2 Jul 09 08:22 Been there; no help. (Saw your link over in the VB 5/6 forum.) RE: Missing API? GhostWolf (Programmer) (OP) 2 Jul 09 08:39 Okay, now I'm stymied. I copied their code to another PC and ran it, and it gets the IP.Looks like it's time to double-check my other code...Thanks, vb5prgrmr. Once again, you've pointed the right direction. RE: Missing API? GhostWolf (Programmer) (OP) 2 Jul 09 10:56 Aha!! Found it! In case anyone else needs to know:The source code I'd originally copied had two problems:- it prepended the machine name with "\\"; and- the second parameter of the CopyMemory call was being passed ByRef instead of ByVal.Once I removed the qualifier from the name, and changed the call, it started working correctly.