Solved

Problem error opening xml file

Posted on 2003-11-05
3
139 Views
Last Modified: 2010-05-03
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
Comment
Question by:b3cf
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 50 total points
ID: 9690232
0
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9691815
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
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9691818
Sorry, wrong posting
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

707 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now