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. vc++ exe failing to run

vc++ exe failing to run

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++visual-studiotutorial
5 Posts 2 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.
  • R Offline
    R Offline
    rupeshkp728
    wrote on last edited by
    #1

    Using visual studio 2008 I created a small vc++ project and ran it using the exe created. The problem is the exe runs fine on my PC. But when I tried to run the exe on an another PC it gave the error "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." Any idea as to what may be causing this error and how to resolve it?

    C 1 Reply Last reply
    0
    • R rupeshkp728

      Using visual studio 2008 I created a small vc++ project and ran it using the exe created. The problem is the exe runs fine on my PC. But when I tried to run the exe on an another PC it gave the error "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." Any idea as to what may be causing this error and how to resolve it?

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      You have to install the VC2008 redistributable package (search on the MSDN website) on the target PC. This will install the MFC and C run-time libraries which are required by your application. Another solution is to statically link against those libraries.

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      R 1 Reply Last reply
      0
      • C Cedric Moonen

        You have to install the VC2008 redistributable package (search on the MSDN website) on the target PC. This will install the MFC and C run-time libraries which are required by your application. Another solution is to statically link against those libraries.

        Cédric Moonen Software developer
        Charting control [v3.0] OpenGL game tutorial in C++

        R Offline
        R Offline
        rupeshkp728
        wrote on last edited by
        #3

        Thanks Cedric for the inputs. Anyway I solved the issue by changing the project configuration. In the Project Properties >>> C/C++ Code Generation >>> Run Time Library I selected /MT which solved the problem. Earlier it was /MD which which was causing the error.

        C 1 Reply Last reply
        0
        • R rupeshkp728

          Thanks Cedric for the inputs. Anyway I solved the issue by changing the project configuration. In the Project Properties >>> C/C++ Code Generation >>> Run Time Library I selected /MT which solved the problem. Earlier it was /MD which which was causing the error.

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Yes, it means you statically link against the run-time libraries as I said in my previous reply.

          Cédric Moonen Software developer
          Charting control [v3.0] OpenGL game tutorial in C++

          R 1 Reply Last reply
          0
          • C Cedric Moonen

            Yes, it means you statically link against the run-time libraries as I said in my previous reply.

            Cédric Moonen Software developer
            Charting control [v3.0] OpenGL game tutorial in C++

            R Offline
            R Offline
            rupeshkp728
            wrote on last edited by
            #5

            yes thanks for the hints.

            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