none
having MSXML warnings

    Question

  • Hi, all, I got 13 same warnings when using msxml6.dll

    1>c:\users\daiyue\documents\visual studio 2008\projects\project\stdafx.h(37) : warning C4279: 'value': identifier in type library 'msxml6.dll' is a keyword; use the 'rename' qualifier

    what is that? thanks in advance.

    daiyue

    Thursday, October 7, 2010 10:28 PM

Answers

All replies

  • Suppose you are using #import with MSXML6. You can fix this with #import xxx rename("value", "valueEx"). Check http://msdn.microsoft.com/en-us/library/eszd7edh.aspx for more information.

    Overall, using #imprt is not a suggested way. Try to use raw COM with smart pointer instead.

    Friday, October 8, 2010 3:56 AM
    Moderator
  • Hi, thanks for the reply, and how to use raw COM with smart pointer? actually, I am using smart pointer classes within my code, like IXMLDOMNodePtr, IXMLDOMDocumentPtr and so on.

    daiyue

    Friday, October 8, 2010 12:32 PM
  • We encourage our customers to use raw C++COM or ATL smart pointer like CComPtr instead of the *Ptr code generated by VC. There are a lot of samples in the internet.
    Monday, October 11, 2010 9:18 AM
    Moderator
  • We encourage our customers to use raw C++COM or ATL smart pointer like CComPtr instead of the *Ptr code generated by VC. There are a lot of samples in the internet.

    what do you mean by VC generated *Ptr code?
    Monday, October 11, 2010 2:11 PM