Hey guys, my first ever post!
I've looked around and i'm loving this website..
I decided i wanted to learn VisualBasic to help build an application to help me in my job, (i support web hosting clients). I've only even touched PHP/MySQL and some bash scripting. Nothing using OO(P).
I'm using the new Visual Basic 2005 Express Edition. Which is great, i love it. Nice clean design and works well.
Ok, on to my problem. This is/may be really basic. But i just cant fathom it out:
One of my daily tasks i find myself doing is looking up IP's from a hostname, and vice versa, now i know there are hundreds of apps/tools out there but i want my own, to work it the way I want it to work. Plus i want to learn anyway.
The code i have:
Code:
Private Sub Button1_Click(.... blah.. )
Dim hostInfo As Net.IPHostEntry = GetHostEntry("domainname")
MessageBox.Show(hostInfo)
End Sub
' The error:
' Value of type 'System.Net.IPHostEntry' cannot be converted
' to 'String'.
Now i know this is wrong, and i know about why its wrong, but for the life of me i cannot figure a way around it. I have searched the internet but i only find ASP.Net examples and I dont think i could utilse any of the workarounds/solutions that are provided.
I hope that someone will take pity on me, and help me out. I also am very willing to read / research, so i dont mind if i get told to "RTFM" as long as you point me to the section i need, or at least give me a hint.
I want to thank anyone in advanced for helping me out.
Thanks.
Michael
PS: Wow, this turned out to be one hell of a post! :)
---------------------
Thanks for all your help P2P Wrox! (and its users)