using msxml in ms vc++ with smart pointers

Subject: using msxml in ms vc++ with smart pointers
From: "alan dennis" <alan_l_dennis@xxxxxxxxxxx>
Date: Sat, 16 Jan 1999 18:48:16 PST
Anyone know what's wrong with the following, it throws in loadXML:

#include "iostream.h"
#import "c:\winnt\system32\msxml.dll" rename_namespace("msxml20")

int main(int argc, char* argv[])
{
	msxml20::IXMLDOMDocumentPtr XMLdoc ;
	CoInitialize(NULL);
	XMLdoc.CreateInstance(__uuidof(msxml20::IXMLDOMDocument));
	XMLdoc->loadXML("<test>Hello World</test>");
	cout << XMLdoc->xml << endl;
	return 0;
}


Thanks,
Alan.

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread