1. Pacito Nefulda
  2. PowerBuilder
  3. Tuesday, 5 February 2019 20:23 PM UTC

Converting PB 12.5 application to 64 Bit PB2017 R3 and having issue with an External Function that calls GetHost from pbws32.dll. Is there any other way to get the machine IP Address without using pbws32.dll. Should work on both 32 and 64 Bit. Thanks

 

Pacito Nefulda Accepted Answer Pending Moderation
  1. Thursday, 7 February 2019 15:25 PM UTC
  2. PowerBuilder
  3. # 1

Gentlemen,

Thank you very much, your suggested solution worked. We can now replace pbws32.dll.

 

 

Comment
  1. Sanjay Shivade
  2. Friday, 4 October 2019 16:28 PM UTC
What exactly did you replace to resolve this issue?
  1. Helpful
  1. Pacito Nefulda
  2. Tuesday, 29 October 2019 17:44 PM UTC
Just followed the suggestion from Chris below.



Hi Pacito;



Roland has a great free example of this on his website: http://www.topwizprogramming.com/freecode_winsock.html



I believe that he uses the "gethostbyname" SDK call for this from the MS-Windows "ws2_32.dll" DLL



HTH



Regards ... Chris

  1. Helpful
There are no comments made yet.
Pacito Nefulda Accepted Answer Pending Moderation
  1. Tuesday, 5 February 2019 21:17 PM UTC
  2. PowerBuilder
  3. # 2

Thank you Chris. I will definitely look into this link and try. And will try to keep you posted on our progress. Regards.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 February 2019 20:44 PM UTC
  2. PowerBuilder
  3. # 3

Hi Pacito;

  Roland has a great free example of this on his website: http://www.topwizprogramming.com/freecode_winsock.html

I believe that he uses the "gethostbyname" SDK call for this from the MS-Windows "ws2_32.dll" DLL

HTH

Regards ... Chris

Comment
  1. Roland Smith
  2. Tuesday, 5 February 2019 21:22 PM UTC
It also has a function to return the public IP address. It connects to the Google DNS server and uses getsockname to return the address that Google sees.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 5 February 2019 22:30 PM UTC
That sounds great Roland! :-)
  1. Helpful
  1. Marcio Noronha
  2. Thursday, 26 March 2020 12:13 PM UTC
Hello Roland... the winsock64 works on PB7?
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.