none
error C1083: Cannot open include file: 'winsdkver.h': No such file or directory

    Question

  • I have recently upgraded VS to ultimate 2012, after that my earlier working code has started showing Cannot open include file: 'winsdkver.h':error..Please let me know how can I solve this problem

    Thursday, April 06, 2017 11:49 AM

All replies

  • Hi vikramgd,

    Thanks for posting MSDN forum.

    Have you install the SDK after migrated the projects? I can found 'winsdkver.h' in the path of Microsoft SDKs v7.1A, v.7.0A or Windows Kits 8.0. If you can not find it, please try to install the latest one:

    Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1

    Microsoft Windows SDK for Windows 7 and .NET Framework 4

    Windows Software Development Kit (SDK) for Windows 8

    If you have already installed the SDKs, please try to included the paths into your project: 

    under Solution Explorer, right click on the project -> Properties -> Configuration Properties -> VC++ Directories:

    include path:

    $(VC_IncludePath);$(WindowsSDK_IncludePath);

    lib paths:

    :$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);

    Hope this can help you.


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, April 07, 2017 5:24 AM