Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2001-07-20
3
Medium Priority
?
402 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 300 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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 use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

971 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