Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - RE: Discrepancy in MSXML APIs >Thread Next - RE: Discrepancy in MSXML APIs RE: Discrepancy in MSXML APIsTo: NULL Date: 6/1/2004 7:35:00 AM Hi, Thanks for your response! The following #import directive is correct and enough for using MSXML2(Don't forget to change the corresponding namespace to MSXML2::... in the source file): #import <msxml4.dll> named_guids using namespace MSXML2; >Now... >If I changed StdAfx.h to: >#import <msxml4.dll> raw_interfaces_only //named_guids >using namespace MSXML2; Why do you change the #import directive? Do you have any particular concern on that? If you use the "raw_interfaces_only" directive, you cannot use the wrapped XMLDOM helper class in the sample code: D:\Client 4.0\MSDN Samples\downloads\samples\XML\CodeGuru DOM Intro\XMLDOMFromVC\XMLDOMFromVCDlg.cpp(140) : error C2660: 'load' : function does not take 1 parameters If you ignore the "named_guids" directive, you will get the following error: D:\Client 4.0\MSDN Samples\downloads\samples\XML\CodeGuru DOM Intro\XMLDOMFromVC\XMLDOMFromVCDlg.cpp(123) : error C2039: 'CLSID_DOMDocument' : is not a member of 'MSXML2' You can reference to the following MSDN doc's link: The #import Directive http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html /_predir_The_.23.import_Directive.asp Thanks! Best regards, Gary Chang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
