Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 153
  • Last Modified:

Problem error opening xml file

Hi

  I have a reference set to msxml4.0 in my project.
I have  this and msxml2.0 registered in my machine.

The following code works fine, but if I unregister 2.0
it does not.

Could someone advice me on how  I could use 4.0.
 thanx

Set XMLDoc = New DOMDocument
0
b3cf
Asked:
b3cf
  • 2
1 Solution
 
AzraSoundCommented:
0
 
fantasy1001Commented:
Try this:

Private Function IPtoHost(ByVal IPstr As String) As String
Try
   Dim dns As System.Net.Dns
   Dim Host As New System.Net.IPHostEntry()
   Host = dns.GetHostByAddress(IPstr)
   IPtoHost = Host.HostName
Catch err As Exception
   MsgBox(err.Message)
End Try
End Function

~ fantasy ~
0
 
fantasy1001Commented:
Sorry, wrong posting
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now