Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. fatal error

fatal error

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiohelptutorial
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    santhoshv84
    wrote on last edited by
    #1

    Hi Friends, I am getting this error in my program. in Stdafx header file...

    fatal error C1083: Cannot open include file: 'afximpl.h': No such file or directory.

    But this file is available in C:\Program files\Microsoft Visual Studio.Net 2003\vc7\atlmfc\src\mfc\afximpl.h So i dont know how to resolve this error. Could any one try to resolve this.

    Thanks and Regards. SANTHOSH V

    _ S V 3 Replies Last reply
    0
    • S santhoshv84

      Hi Friends, I am getting this error in my program. in Stdafx header file...

      fatal error C1083: Cannot open include file: 'afximpl.h': No such file or directory.

      But this file is available in C:\Program files\Microsoft Visual Studio.Net 2003\vc7\atlmfc\src\mfc\afximpl.h So i dont know how to resolve this error. Could any one try to resolve this.

      Thanks and Regards. SANTHOSH V

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      how are you including the file? #include and before doing that you must #include Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      S N 3 Replies Last reply
      0
      • _ _AnsHUMAN_

        how are you including the file? #include and before doing that you must #include Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        S Offline
        S Offline
        santhoshv84
        wrote on last edited by
        #3

        Hi, I included #include , still its not working..

        Thanks and Regards. SANTHOSH V

        1 Reply Last reply
        0
        • S santhoshv84

          Hi Friends, I am getting this error in my program. in Stdafx header file...

          fatal error C1083: Cannot open include file: 'afximpl.h': No such file or directory.

          But this file is available in C:\Program files\Microsoft Visual Studio.Net 2003\vc7\atlmfc\src\mfc\afximpl.h So i dont know how to resolve this error. Could any one try to resolve this.

          Thanks and Regards. SANTHOSH V

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          You shouldn't include this file, it's internal to MFC.

          Steve

          1 Reply Last reply
          0
          • _ _AnsHUMAN_

            how are you including the file? #include and before doing that you must #include Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

            S Offline
            S Offline
            santhoshv84
            wrote on last edited by
            #5

            Hi, Yes i did as you told. I included both the headers Still its not working..

            Thanks and Regards. SANTHOSH V

            1 Reply Last reply
            0
            • S santhoshv84

              Hi Friends, I am getting this error in my program. in Stdafx header file...

              fatal error C1083: Cannot open include file: 'afximpl.h': No such file or directory.

              But this file is available in C:\Program files\Microsoft Visual Studio.Net 2003\vc7\atlmfc\src\mfc\afximpl.h So i dont know how to resolve this error. Could any one try to resolve this.

              Thanks and Regards. SANTHOSH V

              V Offline
              V Offline
              venera_soft
              wrote on last edited by
              #6

              Hi! I also had this problem.:confused: Just try to include the file using double quotation marks around the path specification: use #include "afximpl.h" instead of #include <afximpl.h>.

              D 1 Reply Last reply
              0
              • V venera_soft

                Hi! I also had this problem.:confused: Just try to include the file using double quotation marks around the path specification: use #include "afximpl.h" instead of #include <afximpl.h>.

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                venera_soft wrote:

                Just try to include the file using double quotation marks around the path specification: use #include "afximpl.h" instead of #include .

                Why? That instructs the preprocessor to look for the file in the same directory as the #include statement, which it obviously is not going to find.

                "Love people and use things, not love things and use people." - Unknown

                "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

                1 Reply Last reply
                0
                • _ _AnsHUMAN_

                  how are you including the file? #include and before doing that you must #include Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

                  N Offline
                  N Offline
                  noxmortis
                  wrote on last edited by
                  #8

                  To fix by checking the following possible causes: 1. File does not exist. 2. File, subdirectory, or disk is read-only. 3. No access permission for file or directory. 4. Not enough file handles. Close some applications and recompile. 5. The INCLUDE environment variable is set incorrectly. This is my suggestion. For the Visual Studio please look under "Tools - Options - Projects an Solutions --> VC++ Directories" for the include files directories that the Visual Studio uses to search for include files. There you can add this directory. 6. An #include directive uses double quotation marks around a path specification, which causes the standard directories to be skipped. 7. You did not specify /clr and your program uses CLR constructs. 8. You attempted to compile a single file in the project without first compiling stdafx.cpp. Before you can compile a single file in the project, you need to compile stdafx.cpp. In the case of the /analyze (Enterprise Code Analysis) compiler option, you will need to use the same /analyze setting for stdafx.cpp that you use for the .cpp file.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups