0

In VB 6.0 (Windows 10) I am facing compile time error at DOMDocument:

User-defined type not defined

The same code compiled in XP. I need to know the reason and fix for this issue.

Friend Sub Load(xDocvar As DOMDocument)

Actual result: it throws error message as "user-defined type not defined".
Expected result: it shouldn't throw error.

Ricardo Rocha
  • 14,612
  • 20
  • 74
  • 130
Kumar
  • 1
  • 1

1 Answers1

0

The XML 6.0 is not exactly backward compatible: some classes now have different names. For example, you should use:

Friend Sub Load(xDocvar As DOMDocument60)
itsLex
  • 786
  • 1
  • 5
  • 13