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. Error while executing program

Error while executing program

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++workspace
12 Posts 3 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.
  • S Offline
    S Offline
    SzyKam
    wrote on last edited by
    #1

    Hello! I've made simple MFC program. I sent it to my friend, and he told me that he is getting an error while executing. The message box says that the configuration is corrupted and reinstall of this app. might help (something like that). He tryied to run this app on 3 more computers always getting the same error. Please help!

    L C 2 Replies Last reply
    0
    • S SzyKam

      Hello! I've made simple MFC program. I sent it to my friend, and he told me that he is getting an error while executing. The message box says that the configuration is corrupted and reinstall of this app. might help (something like that). He tryied to run this app on 3 more computers always getting the same error. Please help!

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

      Sounds like you didn't give your friend the DLLs that your program needs to run.

      S 1 Reply Last reply
      0
      • L Lost User

        Sounds like you didn't give your friend the DLLs that your program needs to run.

        S Offline
        S Offline
        SzyKam
        wrote on last edited by
        #3

        But how to find out which dll's does he need, and where sholud he place it? This program is a simple dialog, made with app wizard. With a press of a button I create modal window. Can't anything be done while debugging/linking...some build options?

        L 1 Reply Last reply
        0
        • S SzyKam

          But how to find out which dll's does he need, and where sholud he place it? This program is a simple dialog, made with app wizard. With a press of a button I create modal window. Can't anything be done while debugging/linking...some build options?

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

          You can use a program called Depends[^] to see what DLLs your program is dependent upon. You might just want to change your project settings to statically link with the runtime and you might not have to distribute any DLLs at all.

          S 1 Reply Last reply
          0
          • L Lost User

            You can use a program called Depends[^] to see what DLLs your program is dependent upon. You might just want to change your project settings to statically link with the runtime and you might not have to distribute any DLLs at all.

            S Offline
            S Offline
            SzyKam
            wrote on last edited by
            #5

            There is a lot of dll's that application depends on. It is hard to check every machine before runnig a program on it. I don't know if i'm getting it correct (this sattically link), but I've changed in project properties to "Use MFC in Static Library". It didn't worked.

            L 1 Reply Last reply
            0
            • S SzyKam

              There is a lot of dll's that application depends on. It is hard to check every machine before runnig a program on it. I don't know if i'm getting it correct (this sattically link), but I've changed in project properties to "Use MFC in Static Library". It didn't worked.

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

              Then I think that we will need a bit more information to be able to help.

              S 1 Reply Last reply
              0
              • L Lost User

                Then I think that we will need a bit more information to be able to help.

                S Offline
                S Offline
                SzyKam
                wrote on last edited by
                #7

                What information?

                L 1 Reply Last reply
                0
                • S SzyKam

                  What information?

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

                  What version of compiler you using? What kind of project is it? What is the error that you are getting?

                  S 1 Reply Last reply
                  0
                  • L Lost User

                    What version of compiler you using? What kind of project is it? What is the error that you are getting?

                    S Offline
                    S Offline
                    SzyKam
                    wrote on last edited by
                    #9

                    Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual C++ 2005 77626-009-0000007-41598 Microsoft Visual C++ 2005 Project: Dialog window made with MFC Application Wizzard. I added only: 1 button to main window, create 1 dialog and call it as Modal window tih this botton.

                    L 1 Reply Last reply
                    0
                    • S SzyKam

                      Hello! I've made simple MFC program. I sent it to my friend, and he told me that he is getting an error while executing. The message box says that the configuration is corrupted and reinstall of this app. might help (something like that). He tryied to run this app on 3 more computers always getting the same error. Please help!

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

                      If he has XP, it could be a problem related to a missing manifest file ? If you linked statically to MFC, it's probably the C run time that you're using and need to distribute. What version of VC are you using ?

                      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                      S 1 Reply Last reply
                      0
                      • S SzyKam

                        Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual C++ 2005 77626-009-0000007-41598 Microsoft Visual C++ 2005 Project: Dialog window made with MFC Application Wizzard. I added only: 1 button to main window, create 1 dialog and call it as Modal window tih this botton.

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

                        As Christian pointed out, it is entirely possible that you need to give him the runtime libraries. For your version of VC it will be the msvc*80.dlls. There should only be a couple of them.

                        Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert.

                        1 Reply Last reply
                        0
                        • C Christian Graus

                          If he has XP, it could be a problem related to a missing manifest file ? If you linked statically to MFC, it's probably the C run time that you're using and need to distribute. What version of VC are you using ?

                          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                          S Offline
                          S Offline
                          SzyKam
                          wrote on last edited by
                          #12

                          I believe the problem is solved. I made the same project from the begining, now using Static Library. I don't know why it did't work last time. Maybe I should delete previous bild .exe file. Anyway... thans for your time and help.

                          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