IP Addresses in int8 database columns ?
by lothar.behrens@lollisoft.de » Mon, 30 Jan 2006 08:30:45 GMT
Hi,
I have a query in my project, that shows up a column of type int8.
Originally there is stored an
IP address.
Is there any WX conversion function to show up as 'user' readable IP
address ?
Source of the tables are from
http://www.**--****.com/
they store a standard integer representation in the table.
Thanks, Lothar
Re: IP Addresses in int8 database columns ?
by dradick » Mon, 30 Jan 2006 22:34:37 GMT
For my use of IP addresses and a wxListCtrl, I've found the following to
be very fast and robust:
wxString cellbuf;
for (int x=0;, x < mylist.size(); x++)
{
buf="";
buf << myint8_var;
mylist->SetItem(x, col, buf);
}
If you need to convert from an IP addr Int32 number to 4 Int8s, just
define a struct and do shifts to pull out the Int8 vars.
HTH,
-Don
---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM
Similar Threads:
1.IP Address in ipconfig differs from IP Address on IP address check
2.IP Address in ipconfig differs from IP Address on IP address c
3.IP Address in ipconfig differs from IP Address on IP address checking websites
4.Unable to acquire IP Address or DNS, however Manual IP allows IP-IP browsing
I have a weird problem with one of our systems.
It's a TYAN motherboard using the nForce chipset.
When I hook the network cable up to it (known to be good) it shows
connected.
However, the only thing that shows up in the IP Address is 0.0.0.0.
Upon attempting to click repair, it immediately times out saying that
it cannot renew the IP.
Going into command prompt and using ipconfig lists an error that says
that the device has a duplicate IP on the network and cannot function
until it receives a new one. Attempting to release the network adapter
gives an error that it cannot be released in current state.
So, here I'm left with a network card that has no IP address, not even
the internal failure one, and cannot release / renew for a new one.
So I set it to an unused IP address in our static range. It accepts the
parameters, and then configures itself. Windows now shows it properly
as 192.168.0.X. When I attempt to access the outside world via a DNS
name, it fails immediately without even trying to access our dns
server. When I type in the ip address manually, it comes up.
All of the other 10 machines in our network are perfectly fine using
DHCP. Any clue to as why this machine is acting so weird?
Thanks,
Josh McFarlane
5.Restricting ip addresses to specific IP addresses
Hi, Am really struggling to keep rougue users from my LAN, one of the challenges is blocking users with unknown mac addresses from getting any IP address from my dhcp pool, is there any one out there who has been able to achieve this. Am running windows 2000 server.
Thanks, Phillip Erukan Imoh
6. IP ADDRESS CHANGE ISSUES / QUESTION -Multiple IP Addresses on PDC
7. limit RRAS to a single ip address instead of all ip addresses
8. map the public IP address and port number to a private IP address and port number