Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

785 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