Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Convert web address to IP (DBP)

Author
Message
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 31st Mar 2007 03:55 Edited at: 31st Mar 2007 03:58
Does what it says on the tin - looks up the IP address for the specified web address.

The functions:



Example:



Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 31st Mar 2007 07:15
The function GetHostByAddr doesn't work for me. Any DLL's I need to get?

Need web design help with PHP or XHTML? E-mail me!
http://veron.sitesled.com Visit Veron! Free games, programs and applications! Made in DBPRO, FPSC, and C++!
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 31st Mar 2007 07:40 Edited at: 31st Mar 2007 07:42
What do you mean it doesn't work for you? What happens when you try to use it?

No, there aren't any DLLs you need to get. This relies on a system DLL.

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 31st Mar 2007 08:25 Edited at: 31st Mar 2007 08:26
Thought so. I'm getting "Cannot perform 'string' cast on type '@GetHostByAddr' at line 10"

Need web design help with PHP or XHTML? E-mail me!
http://veron.sitesled.com Visit Veron! Free games, programs and applications! Made in DBPRO, FPSC, and C++!
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 31st Mar 2007 09:01
Then you are trying to return an integer, when the function returns a string.

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)

Login to post a reply

Server time is: 2024-11-22 19:09:34
Your offset time is: 2024-11-22 19:09:34