Deploying a VC++ application on a target machine
-
Hi, I've tried to build a VC++ program in VS2005. I built it in release mode and although it runs correctly in my machine, when I try to run it in a machine which does not have VS2005 the application instead of running shows an error message box saying: "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." My application is composed of an exe file and several dlls which I copy to the target machine. Do I have to copy anything else to the target machine? Thank you.
-
Hi, I've tried to build a VC++ program in VS2005. I built it in release mode and although it runs correctly in my machine, when I try to run it in a machine which does not have VS2005 the application instead of running shows an error message box saying: "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." My application is composed of an exe file and several dlls which I copy to the target machine. Do I have to copy anything else to the target machine? Thank you.
When you created the program, did you select in application wizard, "Use in a shared dll", or "Use in a static library"? Windows shares many .dll files and if you chose a static library, Windows may not be able to access the program you are trying to deploy because the program is telling Windows that it has it's own dll's. Are you trying to deploy to computers with different operating systems, or are they the same? If they are different, you may need to find out what .dll's are needed for the program to work. I know that is not much help, but it's all I can think of. :) Richard
-
When you created the program, did you select in application wizard, "Use in a shared dll", or "Use in a static library"? Windows shares many .dll files and if you chose a static library, Windows may not be able to access the program you are trying to deploy because the program is telling Windows that it has it's own dll's. Are you trying to deploy to computers with different operating systems, or are they the same? If they are different, you may need to find out what .dll's are needed for the program to work. I know that is not much help, but it's all I can think of. :) Richard
If I chose static linking was Windows supposed to embed the library code I use in my binaries so that I don't need dlls at all? Anyway I'm using shared dll. The operating system in both machines is WinXP SP2. Any idea what are these manifest files I got produced with each one of my dlls? Do I have to distribute them along with my app? Themis
-
If I chose static linking was Windows supposed to embed the library code I use in my binaries so that I don't need dlls at all? Anyway I'm using shared dll. The operating system in both machines is WinXP SP2. Any idea what are these manifest files I got produced with each one of my dlls? Do I have to distribute them along with my app? Themis
Themis wrote:
Any idea what are these manifest files I got produced with each one of my dlls?
Please note: this is a rough explanation, based on my limited understanding. Manifest files are how applications and their DLL's can specify their dependencies on each other. You probably need to include them in your installation. You can include the manifest in the resources for your DLL/EXE, which then avoids needing to worry about copying the manifest file.
Software Zen:
delete this;
-
Hi, I've tried to build a VC++ program in VS2005. I built it in release mode and although it runs correctly in my machine, when I try to run it in a machine which does not have VS2005 the application instead of running shows an error message box saying: "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." My application is composed of an exe file and several dlls which I copy to the target machine. Do I have to copy anything else to the target machine? Thank you.
See the FAQ 8.2 A program I've written doesn't load when it's run on a computer without Visual C++ installed. Why?[^] --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ