I'm experienced with ASP, but relatively new to VB
component development. When I try these lines:
Dim objXMLResponse As MSXML2.DOMDocument40
Dim objHTTP As MSXML2.ServerXMLHTTP
The compiler gives an error "User-defined type not
defined."
I have checked my References, and both "Microsoft XML,
version 2.0" and "Microsoft XML, version 3.0" are checked
for inclusion.
Anybody know what the magic incantation is? (The docs
cleverly leave out any VB examples!)
Thanks,
Chris
From your code snippet, you are using the MSXML2.DOMDocument40 object. This
object is a MSXML 4.0 object, so you need to reference "Microsoft XML 4.0"
in the project, instead of other versions of MSXML. If you haven't already
installed MSXML 4.0, you can download and install it from the following
location:
http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?ur
l=/msdn-files/027/001/766/msdncompositedoc.xml
For more information about MSXML 4.0, you can check the following document:
http://msdn.microsoft.com/library/?url=/library/en-us/xmlsdk/htm/sdk_intro_6
g53.asp?frame=true
Regards,
Elan Zhou
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!