Almost got it!

I am making a game from the Digipen ProjectFun FunEditor program and compiling it though Visual C++ 2005. It compiles but not an .exe, and says it cannot find the file when I try running it.

This is what it says in FunEditor:

Failed to execute: <file.exe>

The following error was reported: The system cannot find the file specified.

On the Visual C++ compiler:

Build Log

Build started: Project: Brick Game, Configuration: Debug|Win32

Command Lines
Creating temporary file "c:\Program Files\DigiPen\FunEditor1.5\Library\Data\Debug\RSP00000418524044.rsp" with contents
[
/Od /I "C:\Program Files\DigiPen\FunEditor1.5\Library\FunInclude" /I "C:\Program Files\DigiPen\FunEditor1.5\Library" /D "WIN32" /D "ERROR_MESSAGES" /D "_WINDOWS" /D "FUNCORE" /D "_MBCS" /FD /EHsc /RTC1 /MTd /Fo".\Debug/" /Fd".\Debug/" /W3 /c /ZI ".\StateMachineFun.cpp"

".\MyGame.cpp"

".\LoadActorsFun.cpp"

".\GameNodeFun.cpp"

".\GameFunctions.cpp"
]
Creating command line "cl.exe @"c:\Program Files\DigiPen\FunEditor1.5\Library\Data\Debug\RSP00000418524044.rsp" /nologo /errorReport:prompt"
Output Window
Compiling...
StateMachineFun.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
MyGame.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
LoadActorsFun.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
GameNodeFun.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
GameFunctions.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Results
Build log was saved at "file://c:\Program Files\DigiPen\FunEditor1.5\Library\Data\Debug\BuildLog.htm"
Brick Game - 5 error(s), 0 warning(s)

They said it may be having trouble linking or compile in the wrong path. Please explain in words I can understand.



Answer this question

Almost got it!

  • DominiqueMassiot2

    The test application works but the game still will not compile right.

    This might narrow things down.

    Build Log

    Build started: Project: Brick Game, Configuration: Debug|Win32

    Command Lines
    Creating temporary file "c:\Program Files\DigiPen\FunEditor1.5\Library\Data\Debug\RSP00000136483092.rsp" with contents
    [
    /Od /I "C:\Program Files\DigiPen\FunEditor1.5\Library\FunInclude" /I "C:\Program Files\DigiPen\FunEditor1.5\Library" /AI "C:\Program Files\DigiPen\FunEditor1.5\Library\Data" /D "WIN32" /D "ERROR_MESSAGES" /D "_WINDOWS" /D "FUNCORE" /D "_MBCS" /FD /EHsc /RTC1 /MTd /Fo".\Debug/" /Fd".\Debug/" /W3 /c /ZI ".\StateMachineFun.cpp"
    
    ".\MyGame.cpp"
    
    ".\LoadActorsFun.cpp"
    
    ".\GameNodeFun.cpp"
    
    ".\GameFunctions.cpp"
    ]
    Creating command line "cl.exe @"c:\Program Files\DigiPen\FunEditor1.5\Library\Data\Debug\RSP00000136483092.rsp" /nologo /errorReport:prompt"
    Creating command line "rc.exe /d "ERROR_MESSAGES" /l 0x409 /I "C:\Program Files\DigiPen\FunEditor1.5\Library\FunInclude" /I "C:\Program Files\DigiPen\FunEditor1.5\Library" /fo"Debug/fun.res" ".\fun.rc""
    
    Output Window
    Compiling...
    StateMachineFun.cpp
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(10) : warning C4996: 'strcpy' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
    c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(11) : warning C4996: 'strcpy' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
    c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(12) : warning C4996: 'strcpy' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
    c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(13) : warning C4996: 'strcpy' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
    c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(14) : warning C4996: 'strcpy' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
    c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(19) : warning C4244: 'argument' : conversion from 'unsigned int' to 'float', possible loss of data
    c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(25) : warning C4390: ';' : empty controlled statement found; is this the intent 
    MyGame.cpp
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    LoadActorsFun.cpp
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    GameNodeFun.cpp
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    GameFunctions.cpp
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(9) : warning C4996: 'strcpy' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
    c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(10) : warning C4996: 'strcpy' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
    c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(11) : warning C4996: 'strcpy' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
    c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(16) : warning C4244: 'argument' : conversion from 'unsigned int' to 'float', possible loss of data
    c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(16) : warning C4244: 'argument' : conversion from 'unsigned int' to 'float', possible loss of data
    Generating Code...
    Compiling resources...
    .\fun.rc(4) : error RC2135 : file not found: C:\Program Files\DigiPen\FunEditor1.5\Library rrow.cur
    .\fun.rc(5) : error RC2135 : file not found: C:\Program Files\DigiPen\FunEditor1.5\Library extsCursor.bmp
    .\fun.rc(8) : error RC2104 : undefined keyword or key name: DS_MODALFRAME
    
    Results
    Build log was saved at "file://c:\Program Files\DigiPen\FunEditor1.5\Library\Data\Debug\BuildLog.htm"
    Brick Game - 3 error(s), 22 warning(s)
    Thanks~
    

  • Vashi

    I followed the steps on the site and at the last step. When it started running It still says it cannot find the file for the application.

    I thought I followed everything It said.

     

    Build Log
      

    Build started: Project: Test Application, Configuration: Debug|Win32

    Command Lines
      
    Creating temporary file "c:\Program Files\Microsoft Platform SDK\Bin\Test Application\Test Application\Debug\RSP00000330841008.rsp" with contents
    [
    /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h" /Fp"Debug\Test Application.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP ".\Test Application.cpp"
    ]
    Creating command line "cl.exe @"c:\Program Files\Microsoft Platform SDK\Bin\Test Application\Test Application\Debug\RSP00000330841008.rsp" /nologo /errorReport:prompt"
    Creating temporary file "c:\Program Files\Microsoft Platform SDK\Bin\Test Application\Test Application\Debug\RSP00000430841008.rsp" with contents
    [
    /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yc"stdafx.h" /Fp"Debug\Test Application.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP ".\stdafx.cpp"
    ]
    Creating command line "cl.exe @"c:\Program Files\Microsoft Platform SDK\Bin\Test Application\Test Application\Debug\RSP00000430841008.rsp" /nologo /errorReport:prompt"
    
    Output Window
      
    Compiling...
    stdafx.cpp
    c:\program files\microsoft platform sdk\bin\test application\test application\stdafx.h(28) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    
    Results
      
    Build log was saved at "file://c:\Program Files\Microsoft Platform SDK\Bin\Test Application\Test Application\Debug\BuildLog.htm"
    Test Application - 1 error(s), 0 warning(s)
    

  • MojoMonkey

    Are you using the Express Edition of Visual C++ If you are then you need to also install the Platform SDK - this link explains how:

    http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/



  • ddennard

    Make sure you followe step 3:

    Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.

    Add the paths to the appropriate subsection:

    Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin

    Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include

    Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Almost got it!