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