Click here to Skip to main content
15,912,665 members
Home / Discussions / C#
   

C#

 
GeneralRe: Constructor of Structs. Pin
mmikey719-Mar-08 5:50
mmikey719-Mar-08 5:50 
GeneralRe: Constructor of Structs. Pin
SPanicker*19-Mar-08 20:04
SPanicker*19-Mar-08 20:04 
GeneralRe: Constructor of Structs. Pin
mmikey719-Mar-08 21:48
mmikey719-Mar-08 21:48 
GeneralRe: Constructor of Structs. Pin
SPanicker*20-Mar-08 21:51
SPanicker*20-Mar-08 21:51 
GeneralRe: Constructor of Structs. Pin
mmikey721-Mar-08 3:34
mmikey721-Mar-08 3:34 
GeneralRe: Constructor of Structs. Pin
SPanicker*23-Mar-08 21:49
SPanicker*23-Mar-08 21:49 
GeneralThe C# webbrowser and Widgets Pin
aggla19-Mar-08 3:37
aggla19-Mar-08 3:37 
GeneralDns.GetHostEntry() WinXP WinVista Issue Pin
Harvey Saayman19-Mar-08 2:03
Harvey Saayman19-Mar-08 2:03 
Hey Guys

i have a lil problem with the following line of code...

txtIp.Text = Dns.GetHostEntry(Dns.GetHostName()).AddressList[0].ToString();

on winXP it returns the correct IP Address but on winVista it returns garbage.

if i change the AddressList[] index to 2(3rd position) it returns the correct IP address

if i change the AddressList[] index in winXP to anything other than 0 i get an indexOutOfBoundsException

what is up with that?

why is there more indexes in vista and only one in XP?

any ideas why and how to fix it because the same app will run on xp and vista

ps. both the computers i tested this on is exactly the same from a hardware point of view, only the OS differs, windows XP Pro Service Pack 2 and windows vista business.

thanx

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)

GeneralRe: Dns.GetHostEntry() WinXP WinVista Issue Pin
Bekjong19-Mar-08 2:22
Bekjong19-Mar-08 2:22 
GeneralRe: Dns.GetHostEntry() WinXP WinVista Issue [SLOVED] Pin
Harvey Saayman19-Mar-08 2:27
Harvey Saayman19-Mar-08 2:27 
GeneralRe: Dns.GetHostEntry() WinXP WinVista Issue [SLOVED] Pin
Bekjong19-Mar-08 3:03
Bekjong19-Mar-08 3:03 
GeneralRe: Dns.GetHostEntry() WinXP WinVista Issue [SLOVED] Pin
Harvey Saayman19-Mar-08 3:06
Harvey Saayman19-Mar-08 3:06 
GeneralRe: Dns.GetHostEntry() WinXP WinVista Issue [SLOVED] Pin
Harvey Saayman19-Mar-08 3:19
Harvey Saayman19-Mar-08 3:19 
GeneralRe: Dns.GetHostEntry() WinXP WinVista Issue [SLOVED] Pin
Bekjong19-Mar-08 3:31
Bekjong19-Mar-08 3:31 
Generalcrypto stream problems Pin
Russell Jones19-Mar-08 0:52
Russell Jones19-Mar-08 0:52 
GeneralRe: crypto stream problems Pin
Ennis Ray Lynch, Jr.19-Mar-08 3:45
Ennis Ray Lynch, Jr.19-Mar-08 3:45 
GeneralRe: crypto stream problems Pin
Russell Jones19-Mar-08 4:19
Russell Jones19-Mar-08 4:19 
GeneralRe: crypto stream problems Pin
Russell Jones19-Mar-08 5:51
Russell Jones19-Mar-08 5:51 
GeneralThreading concepts.. Pin
ptr2void19-Mar-08 0:45
ptr2void19-Mar-08 0:45 
GeneralRe: Threading concepts.. Pin
Laddie19-Mar-08 0:51
Laddie19-Mar-08 0:51 
GeneralRe: Threading concepts.. Pin
ptr2void19-Mar-08 1:10
ptr2void19-Mar-08 1:10 
GeneralRe: Threading concepts.. Pin
Bekjong19-Mar-08 1:23
Bekjong19-Mar-08 1:23 
GeneralBinary Object Serialization Hiccup! Pin
Jammer19-Mar-08 0:39
Jammer19-Mar-08 0:39 
GeneralRe: Binary Object Serialization Hiccup! Pin
Ennis Ray Lynch, Jr.19-Mar-08 3:48
Ennis Ray Lynch, Jr.19-Mar-08 3:48 
GeneralRe: Binary Object Serialization Hiccup! Pin
Jammer19-Mar-08 4:02
Jammer19-Mar-08 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.