Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

cannot open source file "excpt.h"

Amin_MohammadiAmin_Mohammadi Member Posts: 7
i am trying to compile old WDM driver using KMDF driver template in Visual studio 2015
driver write for WinDDK 7600.16385.1 and compile on it with no problem
but i want to compile it in Driver Kit version 10
i include C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km folder in project's Additional Include Directories but i get below error

Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'excpt.h': No such file or directory ProcessPathFinderDriver C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 56

Comments

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 12,714
    xxxxx@gmail.com wrote:
    > i am trying to compile old WDM driver using KMDF driver template in Visual studio 2015
    > driver write for WinDDK 7600.16385.1 and compile on it with no problem
    > but i want to compile it in Driver Kit version 10
    > i include C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km folder in project's Additional Include Directories but i get below error

    You should not need to do that.  The template will add the necessary
    include folders to the project.  Besides, that file is in km\crt, not in km.

    When you changed the include directories, did you do it through the IDE,
    or by editing the project file?  When editing the project file, you have
    to remember to include the old directories, like this:

         
    <AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(DDK_INC_PATH);../Include</AdditionalIncludeDirectories>

    If you do this, you wipe out whatever include directories were there
    previously:

         
    <AdditionalIncludeDirectories>$(DDK_INC_PATH);../Include</AdditionalIncludeDirectories>


    > Severity Code Description Project File Line Suppression State
    > Error C1083 Cannot open include file: 'excpt.h': No such file or directory ProcessPathFinderDriver C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 56

    At the moment, I'm a little confused about why this works for me.  If I
    look at the tlog file to check the "cl" command, it is only including
    "km", but if I do a /P to generate the preprocessor output, it is
    finding the file in km\crt.

    --
    Tim Roberts, xxxxx@probo.com
    Providenza & Boekelheide, Inc.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!