Solved

How do I get the hexadecimal into a variable and then convert to a IPAddress?

Posted on 2001-07-20
3
381 Views
Last Modified: 2013-12-26
Question for PowerBuilder 5.0.04

I need to get the IP Address of a local computer.
I know how to get to the IP Address in the Registry.
The problem is the IP Address is in a hexadecimal form.
How do I get the hexadecimal into a variable?
How do I convert the hexadecimal back to a standard IP Address?

Thanks,
  Frank
0
Comment
Question by:frank_s
3 Comments
 
LVL 4

Expert Comment

by:Bhatti
ID: 6307357
Please write how you are getting IP Adress, that I can Think how to put Hexadec.  into variable.
0
 

Accepted Solution

by:
holvoet earned 100 total points
ID: 6307829
The registry is not reliable; among other things, the location of the ip address
depends on your type of network card (at least it does on NT).

This link should contain exactly what you're looking for :

http://eric.aling.tripod.com/PB/tips/pbtip14.htm

(more messing around with API calls unfortunately).

Regards,
Jo
0
 

Expert Comment

by:SpideyMod
ID: 8297042
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question