none
migration from VS2010 to VS2017 - issue with wincodec.h RRS feed

  • Question

  • Hi,

    I am migrating project which is in VS2010 to VS2017. While build the issue in VS2017 I am getting error related to wincodec.h

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56461): note: see previous definition of 'DWRITE_E_ALREADYREGISTERED'

    1>Note: including file:    C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\wincodec.h

    1>Note: including file:     C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\shared\intsafe.h

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8160): error C2061: syntax error: identifier 'DXGI_JPEG_AC_HUFFMAN_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8165): error C2061: syntax error: identifier 'DXGI_JPEG_DC_HUFFMAN_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8170): error C2061: syntax error: identifier 'DXGI_JPEG_QUANTIZATION_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8349): error C2061: syntax error: identifier 'DXGI_JPEG_AC_HUFFMAN_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8354): error C2061: syntax error: identifier 'DXGI_JPEG_DC_HUFFMAN_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8359): error C2061: syntax error: identifier 'DXGI_JPEG_QUANTIZATION_TABLE'

    I tried to get solution to the problem on google but didn't get any solution for the same. Looking forward for help to resolve the issue.

    Thanks in advance

    Monday, June 17, 2019 6:49 AM

All replies

  • Hi,

    I am migrating project which is in VS2010 to VS2017. While build the issue in VS2017 I am getting error related to wincodec.h

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56461): note: see previous definition of 'DWRITE_E_ALREADYREGISTERED'

    1>Note: including file:    C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\wincodec.h

    1>Note: including file:     C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\shared\intsafe.h

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8160): error C2061: syntax error: identifier 'DXGI_JPEG_AC_HUFFMAN_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8165): error C2061: syntax error: identifier 'DXGI_JPEG_DC_HUFFMAN_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8170): error C2061: syntax error: identifier 'DXGI_JPEG_QUANTIZATION_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8349): error C2061: syntax error: identifier 'DXGI_JPEG_AC_HUFFMAN_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8354): error C2061: syntax error: identifier 'DXGI_JPEG_DC_HUFFMAN_TABLE'

    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8359): error C2061: syntax error: identifier 'DXGI_JPEG_QUANTIZATION_TABLE'

    I tried to get solution to the problem on google but didn't get any solution for the same. Looking forward for help to resolve the issue.

    Thanks in advance


    Hello,

    you don't show the first errors. It looks like you have defined DWRITE_E_ALREADYREGISTERED and all the other identifiers somewhere else already before winerror.h . Where? Please show the full list of errors, not only the last. Normally if you solve the first errors, all other errors that depend on the first errors, go away.

    Regards, Guido

    Monday, June 17, 2019 7:07 AM
  • Hi,

    Thank you for posting here.

    >>migration from VS2010 to VS2017

    Each new version of Visual Studio generally supports most previous types of projects, files, and other assets. You can work with them as you always have, and provided that you don't depend on newer features, Visual Studio generally tries to preserve backwards compatibility with previous versions.

    That is, what renders a project incompatible with previous versions of Visual Studio is not the Visual Studio version, but the MSBuild version, as determined by ToolsVersion. So long as your version of Visual Studio contains the MSBuild toolchain that matches the ToolsVersion in a project, then Visual Studio can invoke that toolchain to build the project.

    For more details you could refer to the link: https://docs.microsoft.com/en-us/visualstudio/porting/port-migrate-and-upgrade-visual-studio-projects?view=vs-2017

    >>issue with wincodec.h error C2061: syntax error: identifier 'DXGI_JPEG_AC_HUFFMAN_TABLE'

    Did you add "#include Dxgitype.h" before "wincodec.h"?

    It would be better to show your code here. Problems with headers normally end up with you defining something or including something that interferes with the following headers. I'm appreciate that if you could provide us with a sample of your code, we will provide you with better help.

    Best Regards,

    Jeanine Zhang

    Monday, June 17, 2019 9:02 AM
    Moderator
  • Hello Guido,

    Thank you for quick response. Those are the warning, and the errors started from the shared lines. However for more clarity I have shared details below. The identifiers mentioned corresponding to error are not part of any warning. Looking forward for your valuable input.


    1>z:.....\drectx9_x64\dxgitype.h(12): warning C4005: 'DXGI_STATUS_OCCLUDED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55460): note: see previous definition of 'DXGI_STATUS_OCCLUDED'
    1>z:.....\drectx9_x64\dxgitype.h(13): warning C4005: 'DXGI_STATUS_CLIPPED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55469): note: see previous definition of 'DXGI_STATUS_CLIPPED'
    1>z:.....\drectx9_x64\dxgitype.h(14): warning C4005: 'DXGI_STATUS_NO_REDIRECTION': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55478): note: see previous definition of 'DXGI_STATUS_NO_REDIRECTION'
    1>z:.....\drectx9_x64\dxgitype.h(15): warning C4005: 'DXGI_STATUS_NO_DESKTOP_ACCESS': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55487): note: see previous definition of 'DXGI_STATUS_NO_DESKTOP_ACCESS'
    1>z:.....\drectx9_x64\dxgitype.h(16): warning C4005: 'DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55496): note: see previous definition of 'DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE'
    1>z:.....\drectx9_x64\dxgitype.h(17): warning C4005: 'DXGI_STATUS_MODE_CHANGED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55505): note: see previous definition of 'DXGI_STATUS_MODE_CHANGED'
    1>z:.....\drectx9_x64\dxgitype.h(18): warning C4005: 'DXGI_STATUS_MODE_CHANGE_IN_PROGRESS': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55514): note: see previous definition of 'DXGI_STATUS_MODE_CHANGE_IN_PROGRESS'
    1>z:.....\drectx9_x64\dxgitype.h(21): warning C4005: 'DXGI_ERROR_INVALID_CALL': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55529): note: see previous definition of 'DXGI_ERROR_INVALID_CALL'
    1>z:.....\drectx9_x64\dxgitype.h(22): warning C4005: 'DXGI_ERROR_NOT_FOUND': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55538): note: see previous definition of 'DXGI_ERROR_NOT_FOUND'
    1>z:.....\drectx9_x64\dxgitype.h(23): warning C4005: 'DXGI_ERROR_MORE_DATA': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55547): note: see previous definition of 'DXGI_ERROR_MORE_DATA'
    1>z:.....\drectx9_x64\dxgitype.h(24): warning C4005: 'DXGI_ERROR_UNSUPPORTED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55556): note: see previous definition of 'DXGI_ERROR_UNSUPPORTED'
    1>z:.....\drectx9_x64\dxgitype.h(25): warning C4005: 'DXGI_ERROR_DEVICE_REMOVED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55565): note: see previous definition of 'DXGI_ERROR_DEVICE_REMOVED'
    1>z:.....\drectx9_x64\dxgitype.h(26): warning C4005: 'DXGI_ERROR_DEVICE_HUNG': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55574): note: see previous definition of 'DXGI_ERROR_DEVICE_HUNG'
    1>z:.....\drectx9_x64\dxgitype.h(27): warning C4005: 'DXGI_ERROR_DEVICE_RESET': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55584): note: see previous definition of 'DXGI_ERROR_DEVICE_RESET'
    1>z:.....\drectx9_x64\dxgitype.h(28): warning C4005: 'DXGI_ERROR_WAS_STILL_DRAWING': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55593): note: see previous definition of 'DXGI_ERROR_WAS_STILL_DRAWING'
    1>z:.....\drectx9_x64\dxgitype.h(29): warning C4005: 'DXGI_ERROR_FRAME_STATISTICS_DISJOINT': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55603): note: see previous definition of 'DXGI_ERROR_FRAME_STATISTICS_DISJOINT'
    1>z:.....\drectx9_x64\dxgitype.h(30): warning C4005: 'DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55612): note: see previous definition of 'DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE'
    1>z:.....\drectx9_x64\dxgitype.h(31): warning C4005: 'DXGI_ERROR_DRIVER_INTERNAL_ERROR': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55622): note: see previous definition of 'DXGI_ERROR_DRIVER_INTERNAL_ERROR'
    1>z:.....\drectx9_x64\dxgitype.h(32): warning C4005: 'DXGI_ERROR_NONEXCLUSIVE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55631): note: see previous definition of 'DXGI_ERROR_NONEXCLUSIVE'
    1>z:.....\drectx9_x64\dxgitype.h(33): warning C4005: 'DXGI_ERROR_NOT_CURRENTLY_AVAILABLE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55640): note: see previous definition of 'DXGI_ERROR_NOT_CURRENTLY_AVAILABLE'
    1>z:.....\drectx9_x64\dxgitype.h(34): warning C4005: 'DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55650): note: see previous definition of 'DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED'
    1>z:.....\drectx9_x64\dxgitype.h(35): warning C4005: 'DXGI_ERROR_REMOTE_OUTOFMEMORY': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55659): note: see previous definition of 'DXGI_ERROR_REMOTE_OUTOFMEMORY'
    1>z:.....\drectx9_x64\d2derr.h(59): warning C4005: 'D2DERR_WRONG_STATE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55988): note: see previous definition of 'D2DERR_WRONG_STATE'
    1>z:.....\drectx9_x64\d2derr.h(64): warning C4005: 'D2DERR_NOT_INITIALIZED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55997): note: see previous definition of 'D2DERR_NOT_INITIALIZED'
    1>z:.....\drectx9_x64\d2derr.h(69): warning C4005: 'D2DERR_UNSUPPORTED_OPERATION': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56006): note: see previous definition of 'D2DERR_UNSUPPORTED_OPERATION'
    1>z:.....\drectx9_x64\d2derr.h(74): warning C4005: 'D2DERR_SCANNER_FAILED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56015): note: see previous definition of 'D2DERR_SCANNER_FAILED'
    1>z.....\drectx9_x64\d2derr.h(79): warning C4005: 'D2DERR_SCREEN_ACCESS_DENIED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56024): note: see previous definition of 'D2DERR_SCREEN_ACCESS_DENIED'
    1>z:.....\drectx9_x64\d2derr.h(84): warning C4005: 'D2DERR_DISPLAY_STATE_INVALID': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56033): note: see previous definition of 'D2DERR_DISPLAY_STATE_INVALID'
    1>z:.....\drectx9_x64\d2derr.h(89): warning C4005: 'D2DERR_ZERO_VECTOR': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56042): note: see previous definition of 'D2DERR_ZERO_VECTOR'
    1>z:.....\drectx9_x64\d2derr.h(97): warning C4005: 'D2DERR_INTERNAL_ERROR': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56051): note: see previous definition of 'D2DERR_INTERNAL_ERROR'
    1>z:.....\drectx9_x64\d2derr.h(103): warning C4005: 'D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56060): note: see previous definition of 'D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED'
    1>z:.....\drectx9_x64\d2derr.h(108): warning C4005: 'D2DERR_INVALID_CALL': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56069): note: see previous definition of 'D2DERR_INVALID_CALL'
    1>z:.....\drectx9_x64\d2derr.h(113): warning C4005: 'D2DERR_NO_HARDWARE_DEVICE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56078): note: see previous definition of 'D2DERR_NO_HARDWARE_DEVICE'
    1>z:.....\drectx9_x64\d2derr.h(119): warning C4005: 'D2DERR_RECREATE_TARGET': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56087): note: see previous definition of 'D2DERR_RECREATE_TARGET'
    1>z:.....\drectx9_x64\d2derr.h(124): warning C4005: 'D2DERR_TOO_MANY_SHADER_ELEMENTS': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56096): note: see previous definition of 'D2DERR_TOO_MANY_SHADER_ELEMENTS'
    1>z:.....\drectx9_x64\d2derr.h(129): warning C4005: 'D2DERR_SHADER_COMPILE_FAILED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56105): note: see previous definition of 'D2DERR_SHADER_COMPILE_FAILED'
    1>z:.....\drectx9_x64\d2derr.h(134): warning C4005: 'D2DERR_MAX_TEXTURE_SIZE_EXCEEDED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56114): note: see previous definition of 'D2DERR_MAX_TEXTURE_SIZE_EXCEEDED'
    1>z:.....\drectx9_x64\d2derr.h(139): warning C4005: 'D2DERR_UNSUPPORTED_VERSION': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56123): note: see previous definition of 'D2DERR_UNSUPPORTED_VERSION'
    1>z:.....\drectx9_x64\d2derr.h(144): warning C4005: 'D2DERR_BAD_NUMBER': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56132): note: see previous definition of 'D2DERR_BAD_NUMBER'
    1>z:.....\drectx9_x64\d2derr.h(149): warning C4005: 'D2DERR_WRONG_FACTORY': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56141): note: see previous definition of 'D2DERR_WRONG_FACTORY'
    1>z:.....\drectx9_x64\d2derr.h(154): warning C4005: 'D2DERR_LAYER_ALREADY_IN_USE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56150): note: see previous definition of 'D2DERR_LAYER_ALREADY_IN_USE'
    1>z:.....\drectx9_x64\d2derr.h(159): warning C4005: 'D2DERR_POP_CALL_DID_NOT_MATCH_PUSH': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56159): note: see previous definition of 'D2DERR_POP_CALL_DID_NOT_MATCH_PUSH'
    1>z:.....\drectx9_x64\d2derr.h(164): warning C4005: 'D2DERR_WRONG_RESOURCE_DOMAIN': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56168): note: see previous definition of 'D2DERR_WRONG_RESOURCE_DOMAIN'
    1>z:.....\drectx9_x64\d2derr.h(169): warning C4005: 'D2DERR_PUSH_POP_UNBALANCED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56177): note: see previous definition of 'D2DERR_PUSH_POP_UNBALANCED'
    1>z:.....\drectx9_x64\d2derr.h(174): warning C4005: 'D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56186): note: see previous definition of 'D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT'
    1>z:.....\drectx9_x64\d2derr.h(179): warning C4005: 'D2DERR_INCOMPATIBLE_BRUSH_TYPES': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56195): note: see previous definition of 'D2DERR_INCOMPATIBLE_BRUSH_TYPES'
    1>z:.....\drectx9_x64\d2derr.h(184): warning C4005: 'D2DERR_WIN32_ERROR': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56204): note: see previous definition of 'D2DERR_WIN32_ERROR'
    1>z:.....\drectx9_x64\d2derr.h(189): warning C4005: 'D2DERR_TARGET_NOT_GDI_COMPATIBLE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56213): note: see previous definition of 'D2DERR_TARGET_NOT_GDI_COMPATIBLE'
    1>z:.....\drectx9_x64\d2derr.h(194): warning C4005: 'D2DERR_TEXT_EFFECT_IS_WRONG_TYPE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56222): note: see previous definition of 'D2DERR_TEXT_EFFECT_IS_WRONG_TYPE'
    1>z:.....\drectx9_x64\d2derr.h(201): warning C4005: 'D2DERR_TEXT_RENDERER_NOT_RELEASED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56231): note: see previous definition of 'D2DERR_TEXT_RENDERER_NOT_RELEASED'
    1>z:.....\drectx9_x64\d2derr.h(206): warning C4005: 'D2DERR_EXCEEDS_MAX_BITMAP_SIZE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56240): note: see previous definition of 'D2DERR_EXCEEDS_MAX_BITMAP_SIZE'
    1>z:.....\drectx9_x64\d3d10.h(608): warning C4005: 'D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55899): note: see previous definition of 'D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS'
    1>z:.....\drectx9_x64\d3d10.h(609): warning C4005: 'D3D10_ERROR_FILE_NOT_FOUND': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(55908): note: see previous definition of 'D3D10_ERROR_FILE_NOT_FOUND'
    1>z:.....\drectx9_x64\dwrite.h(4962): warning C4005: 'DWRITE_E_FILEFORMAT': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56407): note: see previous definition of 'DWRITE_E_FILEFORMAT'
    1>z:.....\drectx9_x64\dwrite.h(4967): warning C4005: 'DWRITE_E_UNEXPECTED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56416): note: see previous definition of 'DWRITE_E_UNEXPECTED'
    1>z:.....\drectx9_x64\dwrite.h(4972): warning C4005: 'DWRITE_E_NOFONT': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56425): note: see previous definition of 'DWRITE_E_NOFONT'
    1>z:.....\drectx9_x64\dwrite.h(4978): warning C4005: 'DWRITE_E_FILENOTFOUND': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56434): note: see previous definition of 'DWRITE_E_FILENOTFOUND'
    1>z:.....\drectx9_x64\dwrite.h(4983): warning C4005: 'DWRITE_E_FILEACCESS': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56443): note: see previous definition of 'DWRITE_E_FILEACCESS'
    1>z:.....\drectx9_x64\dwrite.h(4988): warning C4005: 'DWRITE_E_FONTCOLLECTIONOBSOLETE': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56452): note: see previous definition of 'DWRITE_E_FONTCOLLECTIONOBSOLETE'
    1>z:.....\drectx9_x64\dwrite.h(4993): warning C4005: 'DWRITE_E_ALREADYREGISTERED': macro redefinition
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\winerror.h(56461): note: see previous definition of 'DWRITE_E_ALREADYREGISTERED'
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8160): error C2061: syntax error: identifier 'DXGI_JPEG_AC_HUFFMAN_TABLE'
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8165): error C2061: syntax error: identifier 'DXGI_JPEG_DC_HUFFMAN_TABLE'
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8170): error C2061: syntax error: identifier 'DXGI_JPEG_QUANTIZATION_TABLE'
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8349): error C2061: syntax error: identifier 'DXGI_JPEG_AC_HUFFMAN_TABLE'
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8354): error C2061: syntax error: identifier 'DXGI_JPEG_DC_HUFFMAN_TABLE'
    1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wincodec.h(8359): error C2061: syntax error: identifier 'DXGI_JPEG_QUANTIZATION_TABLE'
    1>Done building project "TDirectXAdapter.vcxproj" -- FAILED.
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
    • Edited by PriyaSri08 Monday, June 17, 2019 10:00 AM
    Monday, June 17, 2019 9:52 AM
  • Hi,

    Thank you for quick response.

    >>issue with wincodec.h error C2061: syntax error: identifier 'DXGI_JPEG_AC_HUFFMAN_TABLE'

    Did you add "#include Dxgitype.h" before "wincodec.h"? ==> I tried getting place where we could have included wincodec.h in our code. But strange I didn't get any file where we have included this file. I searched for Dxgitype.h as well. I enabled "show includes" option as well to get the details however no clue on the same. In the properties I could see files - d3dx9.lib and d3d9.lib added in Addition Dependencies.

    Monday, June 17, 2019 10:06 AM
  • The dxgitype header is included in windcodec.h. The wincodec header is included through a couple of other headers. Show includes is the best option since this will show you if the file is included and if it is, from which headers it was included.

    Also header files never has anything to do with libraries, so seeing d3dx9.lib and d3d9.lib in Additional Dependencies is inconsequential.


    This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.

    Monday, June 17, 2019 10:29 AM