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. MFC application(VS2008) does not execute in another computer

MFC application(VS2008) does not execute in another computer

Scheduled Pinned Locked Moved C / C++ / MFC
helpannouncementcsharpc++visual-studio
9 Posts 5 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.
  • T Offline
    T Offline
    tdc_india
    wrote on last edited by
    #1

    We have a MFC project which is create in VS 4. It is converting to VS 6 then VS.net 2002 version 7. It Use MFC in a Shared DLL It builds only in Debug mode. The EXE(using VS.net 2002) runs in another computer by distribute some .DLL files. Now we convert this in VS 2008. After compiling it in Debug mode when we want to try run this EXE in another computer it gives error "This application has failed to start because the application configuration is incorrect.Reinstalling the application may fix this problem." This application we can not build in release mode. since there is no option to Release mode only debug mode available. Please advice. We have tried by distributing the .dll files.

    C S Y 3 Replies Last reply
    0
    • T tdc_india

      We have a MFC project which is create in VS 4. It is converting to VS 6 then VS.net 2002 version 7. It Use MFC in a Shared DLL It builds only in Debug mode. The EXE(using VS.net 2002) runs in another computer by distribute some .DLL files. Now we convert this in VS 2008. After compiling it in Debug mode when we want to try run this EXE in another computer it gives error "This application has failed to start because the application configuration is incorrect.Reinstalling the application may fix this problem." This application we can not build in release mode. since there is no option to Release mode only debug mode available. Please advice. We have tried by distributing the .dll files.

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

      tdc_india wrote:

      This application we can not build in release mode. since there is no option to Release mode only debug mode available.

      :confused: You have to build the application in release mode in order to distribute it. What do you mean by there's no option to Release mode ?? Furthermore, you have to install the redistributable package[^] on the target computer.

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

      T 1 Reply Last reply
      0
      • C Cedric Moonen

        tdc_india wrote:

        This application we can not build in release mode. since there is no option to Release mode only debug mode available.

        :confused: You have to build the application in release mode in order to distribute it. What do you mean by there's no option to Release mode ?? Furthermore, you have to install the redistributable package[^] on the target computer.

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

        T Offline
        T Offline
        tdc_india
        wrote on last edited by
        #3

        We cannot find any option to build in Release mode only Debug mode is available in Configuration manager dialog Box/Toolbar. Please advice. This project is convert from Vs 4 to Vs 6.0 then Vs.net 2002, Now in Vs 2008. in Vs.net 2002 the application is built in Debug mode and then distribute this with .dll files then work fine.

        K 1 Reply Last reply
        0
        • T tdc_india

          We cannot find any option to build in Release mode only Debug mode is available in Configuration manager dialog Box/Toolbar. Please advice. This project is convert from Vs 4 to Vs 6.0 then Vs.net 2002, Now in Vs 2008. in Vs.net 2002 the application is built in Debug mode and then distribute this with .dll files then work fine.

          K Offline
          K Offline
          Kushagra Tiwari
          wrote on last edited by
          #4

          If you dont find a release mode then you can add it yourself in the configuration manager and copy settings from debug mode if required. We should never distribute an executable built in Debug mode to the production environment as application crash might result in unexpected popups. So , rebuild it in release mode in VS 2008 and if it still fails to run on the other machine you can install VS2008 redistributable on the machine and also try with the latest version of .Net framework. Also , try setting your VS2008 settings to VC++ environment from the tools tab PS: Please note ... debug version may be a short-term solution but it should always be avoided as it a box of worms in the long term. -Kushagra

          T 1 Reply Last reply
          0
          • T tdc_india

            We have a MFC project which is create in VS 4. It is converting to VS 6 then VS.net 2002 version 7. It Use MFC in a Shared DLL It builds only in Debug mode. The EXE(using VS.net 2002) runs in another computer by distribute some .DLL files. Now we convert this in VS 2008. After compiling it in Debug mode when we want to try run this EXE in another computer it gives error "This application has failed to start because the application configuration is incorrect.Reinstalling the application may fix this problem." This application we can not build in release mode. since there is no option to Release mode only debug mode available. Please advice. We have tried by distributing the .dll files.

            S Offline
            S Offline
            Sauro Viti
            wrote on last edited by
            #5

            tdc_india wrote:

            This application we can not build in release mode. since there is no option to Release mode only debug mode available. Please advice. We have tried by distributing the .dll files.

            As Cedric already told you, you should build your application in release mode to deploy it; if you don't have a release configuration in the Configuration manager you can add a new confguration and set it in the proper way. Copy the required dependencies and settings from the existing debug configuration and change the required settings to obtain a release configuration (you can use the Project wizard to create a new application and see what it set there for the release configuration). Another thing you should be aware of, is that Microsoft give you the right to redistribute the release version only of the runtime, then you shouldn't redistribute the debug version of its DLLs. Cheers, Sauro

            T 1 Reply Last reply
            0
            • T tdc_india

              We have a MFC project which is create in VS 4. It is converting to VS 6 then VS.net 2002 version 7. It Use MFC in a Shared DLL It builds only in Debug mode. The EXE(using VS.net 2002) runs in another computer by distribute some .DLL files. Now we convert this in VS 2008. After compiling it in Debug mode when we want to try run this EXE in another computer it gives error "This application has failed to start because the application configuration is incorrect.Reinstalling the application may fix this problem." This application we can not build in release mode. since there is no option to Release mode only debug mode available. Please advice. We have tried by distributing the .dll files.

              Y Offline
              Y Offline
              yu jian
              wrote on last edited by
              #6

              You should install the service package 1 for the visual studio 2008

              T 1 Reply Last reply
              0
              • Y yu jian

                You should install the service package 1 for the visual studio 2008

                T Offline
                T Offline
                tdc_india
                wrote on last edited by
                #7

                I am using VS 2008 professional edition. I installed service pack 1. But when I create brand new project using wizard then gives compilation error for the new project. I cannot compile in Debug/Release mode. That is why we cannot create new project after install Service pack 1.

                1 Reply Last reply
                0
                • K Kushagra Tiwari

                  If you dont find a release mode then you can add it yourself in the configuration manager and copy settings from debug mode if required. We should never distribute an executable built in Debug mode to the production environment as application crash might result in unexpected popups. So , rebuild it in release mode in VS 2008 and if it still fails to run on the other machine you can install VS2008 redistributable on the machine and also try with the latest version of .Net framework. Also , try setting your VS2008 settings to VC++ environment from the tools tab PS: Please note ... debug version may be a short-term solution but it should always be avoided as it a box of worms in the long term. -Kushagra

                  T Offline
                  T Offline
                  tdc_india
                  wrote on last edited by
                  #8

                  We have done every thing as you suggest. But I failed to run this project in another computer. This EXE only execute where VS studio installed. Thanks Nandi

                  1 Reply Last reply
                  0
                  • S Sauro Viti

                    tdc_india wrote:

                    This application we can not build in release mode. since there is no option to Release mode only debug mode available. Please advice. We have tried by distributing the .dll files.

                    As Cedric already told you, you should build your application in release mode to deploy it; if you don't have a release configuration in the Configuration manager you can add a new confguration and set it in the proper way. Copy the required dependencies and settings from the existing debug configuration and change the required settings to obtain a release configuration (you can use the Project wizard to create a new application and see what it set there for the release configuration). Another thing you should be aware of, is that Microsoft give you the right to redistribute the release version only of the runtime, then you shouldn't redistribute the debug version of its DLLs. Cheers, Sauro

                    T Offline
                    T Offline
                    tdc_india
                    wrote on last edited by
                    #9

                    We have done every thing as you suggest. But I failed to run this project in another computer. This EXE only execute where VS studio installed. Thanks Nandi

                    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