[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] using msxml in ms vc++ with smart pointers
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|