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. C++ help for a beginer

C++ help for a beginer

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiosysadminhelp
9 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have source code for a program that I want to run on several PC's. I only have one PC with Visual studio so cant just re-compile the code on all the PC's. I have tried just copying the .exe file generated by visual studio to all the PC's but the program does not seem to work properly. I am told this is because the .exe is dependant on a few .dll files. I need to know how to package the .exe and the .dll files together to be installed on several PC's. I think in Visaul Basic I could use the Package and Deployment Wizard, is there an equivalent to this in Visual C++? I have not been able to find anything helpfull on the internet, so if anyone has any suggestions, please let me know. Cheers

    C M 2 Replies Last reply
    0
    • L Lost User

      I have source code for a program that I want to run on several PC's. I only have one PC with Visual studio so cant just re-compile the code on all the PC's. I have tried just copying the .exe file generated by visual studio to all the PC's but the program does not seem to work properly. I am told this is because the .exe is dependant on a few .dll files. I need to know how to package the .exe and the .dll files together to be installed on several PC's. I think in Visaul Basic I could use the Package and Deployment Wizard, is there an equivalent to this in Visual C++? I have not been able to find anything helpfull on the internet, so if anyone has any suggestions, please let me know. Cheers

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Gee, it's kind of hard to know what your program needs, if you're not going to tell us what it uses. There is a program called 'Depends' ( from memory ) in the stuff that comes with VS, it might tell you waht you need. If you use MFC, you need the MFC dll, if you use C in your program, you'll need MSVCRT, etc. I assume it's a release build ? Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

      L 1 Reply Last reply
      0
      • C Christian Graus

        Gee, it's kind of hard to know what your program needs, if you're not going to tell us what it uses. There is a program called 'Depends' ( from memory ) in the stuff that comes with VS, it might tell you waht you need. If you use MFC, you need the MFC dll, if you use C in your program, you'll need MSVCRT, etc. I assume it's a release build ? Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Sorry Christian, I didnt write the code so I dont know what it uses. like I said, I am vey much a beginner and the code is way over my head. Thanks for the help though. Where can I find those dll's that you mentioned?

        C 1 Reply Last reply
        0
        • L Lost User

          Sorry Christian, I didnt write the code so I dont know what it uses. like I said, I am vey much a beginner and the code is way over my head. Thanks for the help though. Where can I find those dll's that you mentioned?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Windows/System32 is where they need to end up, and where they will be to start with. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

          L 1 Reply Last reply
          0
          • C Christian Graus

            Windows/System32 is where they need to end up, and where they will be to start with. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            How do I replace the msvcrt dll. When I try to copy the new one into the system32 folder I get a message saying that It cant be done because windows is using the dll.

            C 1 Reply Last reply
            0
            • L Lost User

              I have source code for a program that I want to run on several PC's. I only have one PC with Visual studio so cant just re-compile the code on all the PC's. I have tried just copying the .exe file generated by visual studio to all the PC's but the program does not seem to work properly. I am told this is because the .exe is dependant on a few .dll files. I need to know how to package the .exe and the .dll files together to be installed on several PC's. I think in Visaul Basic I could use the Package and Deployment Wizard, is there an equivalent to this in Visual C++? I have not been able to find anything helpfull on the internet, so if anyone has any suggestions, please let me know. Cheers

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

              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-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!

              L S 2 Replies Last reply
              0
              • M Michael Dunn

                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-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                thanks, that is exactly what i was after. i thought i had looked through the FAQ's pretty thoroughly, but obviously not Cheers Mike, and thanks everybody else for your help.

                1 Reply Last reply
                0
                • M Michael Dunn

                  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-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!

                  S Offline
                  S Offline
                  shaileshkumar
                  wrote on last edited by
                  #8

                  If you used Visual Studio 2003 and using .net, then your program will not load if .net framework is missing from the computer. Mostly these things happen because the environment on which the code was written has some dlls in the computer which are missing from that where it is deployed. I suggest you start by installing .net framework on the machine where you want to deploy your program. - Shailesh

                  1 Reply Last reply
                  0
                  • L Lost User

                    How do I replace the msvcrt dll. When I try to copy the new one into the system32 folder I get a message saying that It cant be done because windows is using the dll.

                    C Offline
                    C Offline
                    Christian Graus
                    wrote on last edited by
                    #9

                    If it's already there, it's already there. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                    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