Solved

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

Posted on 2001-07-20
3
375 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now