Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Missing API?

Missing API?

Missing API?

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?

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.


RE: Missing API?

Been there; no help.  (Saw your link over in the VB 5/6 forum.)


RE: Missing API?

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?

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.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close