Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Discrepancy in MSXML APIs

From: v-garych@------.---------.--- (---- -----)
To: 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.
--------------------



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent