locked
<msxml6.dll> auto excude file... RRS feed

  • Question

  • Hi,

    It is Visual Studio 2019 Community Update 16.5.1 VC++ (MFC) project under Win 10.

    In a header file (.h) I have a line:

    #import <msxml6.dll> raw_interfaces_only

    The project was compiled and built without problems.

    But after upgrade to 16.5.1 I am getting two warnings:

    1>D:\VS2019\Projects\ANNet\ANNet\XMLSerializer.h(7,42): warning C4192: automatically excluding 'ISequentialStream' while importing type library 'msxml6.dll'
    1>D:\VS2019\Projects\ANNet\ANNet\XMLSerializer.h(7,42): warning C4192: automatically excluding '_FILETIME' while importing type library 'msxml6.dll'

    Why it happens only with 16.5.1 and how to correct it? 



    • Edited by Geoyar Saturday, March 28, 2020 9:58 PM
    Saturday, March 28, 2020 9:51 PM

Answers

  • I reproduced the issue with VS2015 building with a Win 10 SDK.

    When adding the no_auto_exclude attribute to the #import statement the C4192 warnings were no longer generated.

    Sunday, March 29, 2020 12:02 AM

All replies

  • I reproduced the issue with VS2015 building with a Win 10 SDK.

    When adding the no_auto_exclude attribute to the #import statement the C4192 warnings were no longer generated.

    Sunday, March 29, 2020 12:02 AM
  • It works. Thank you.
    Sunday, March 29, 2020 1:35 AM