Cannot open file.

Okay I click new project , then I click windowed application and then finish.
all works fine then I push F5 to build.

I get the following information in a dialoge box.

------ Build started: Project: zane, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
c:\program files\microsoft platform sdk for windows server 2003 r2\include\windows.h(157) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory
Project : warning PRJ0018 : The following environment variables were not found:
$(ProgramFiles\Microsoft Platform SDK\Include;$(VCInstallDir)
Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\zane\zane\Debug\BuildLog.htm"
zane - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Can someone please tell me how to fix this. I am using visual C++ express edition.
windows xp home edition.

Please reply I am using the ogre engine to design a Game and I can't do anything if this wont work.


Answer this question

Cannot open file.

  • mrmrmax

    In the include, did you already have the below in the list

    $(VCInstallDir)include

    $(VCInstallDir)atlmfc\include

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Montty

    I followed step 3 an I get this error.

    ------ Build started: Project: zane, Configuration: Debug Win32 ------
    Compiling...
    stdafx.cpp
    c:\program files\microsoft platform sdk for windows server 2003 r2\include\windows.h(157) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory
    Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\zane\zane\Debug\BuildLog.htm"
    zane - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Is there any plans to make this product easier to use

  • johnbrown105

    Do you know what it is supposed to say instead and how I change it.

  • Erik Castañeda

    all I did was follow step 3

    in the derectory settings I clicked add line and copy and pasted them to the library ,executable, and include.

    should I just uninstall all of it and redo it all

    I am thinking this might help.

  • ShawnShawnShawn

    Where is excpt.h on your machine

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Digitalcandy

    the search says it is here C:\Program Files\Microsoft Visual Studio 8

    where is it supposed to be

  • Fonzy

    Where is 'excpt.h' on your machine Were you able to include non PSDK files like <stdio.h>

    It looks like you removed some of the original include directories. You needed to add the PSDK include directory and not to remove anything.

    How did you change such directory settings originally

    Thanks,
    Ayman Shoukry
    VC++ Team


  • wbkayani

    I did not have the second one for some reason.

  • Greg P

    my computer finds the following files when I search.

    excpt= It findes three of this file
    stdexcpt= it finds 3 of this file


  • Patrick Fredin

    It looks like you have a problem in your include. From your first message, see the following wanring:

    Project : warning PRJ0018 : The following environment variables were not found:
    $(ProgramFiles\Microsoft Platform SDK\Include;$(VCInstallDir)
    Build log was saved at file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\zane\zane\Debug\BuildLog.htm

    The red part doesn't look correct.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Craig N

    Check out step 3 at http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

    You don't need to use the $( but rather just enter the full path to your PSDK include.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • csqlrun

    You have something wrong. The file should be at Program Files\Microsoft Visual Studio 8\VC\include\excpt.h. That is why the project is probably not finding it.

    I would recommend you reinstall the application and follow the steps at http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ from scratch.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Ken Shook

    Make sure you have the following in the include directory:

    $(VCInstallDir)include

    $(VCInstallDir)atlmfc\include

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Fata1Attack

    Do a quick search of your system... do you have a copy of excpt.h

  • Cannot open file.