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. Deploying a VC++ application on a target machine

Deploying a VC++ application on a target machine

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++questionannouncementworkspace
5 Posts 4 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
    Themis
    wrote on last edited by
    #1

    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.

    R M 2 Replies Last reply
    0
    • T Themis

      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.

      R Offline
      R Offline
      Richard_48
      wrote on last edited by
      #2

      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

      T 1 Reply Last reply
      0
      • R Richard_48

        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

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

        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

        G 1 Reply Last reply
        0
        • T 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

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #4

          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;

          Fold With Us![^]

          1 Reply Last reply
          0
          • T Themis

            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.

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            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

            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