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. DLLs for MFC

DLLs for MFC

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++visual-studiotutorial
13 Posts 6 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.
  • E Offline
    E Offline
    eMtek
    wrote on last edited by
    #1

    Hi! I've built MFC project with VS MFC wizzard, and have included my own source. It's working fine on my computer, but on other computer isn't, because it doesn't have reqired DLLs. My question is, how to attach necessery DLLs to my MFC project, to run it on other comuper whitch doesn't have reqired DLLs? Hope You got the point. Looking forward to hearing from You. Thanks!

    D M H 3 Replies Last reply
    0
    • E eMtek

      Hi! I've built MFC project with VS MFC wizzard, and have included my own source. It's working fine on my computer, but on other computer isn't, because it doesn't have reqired DLLs. My question is, how to attach necessery DLLs to my MFC project, to run it on other comuper whitch doesn't have reqired DLLs? Hope You got the point. Looking forward to hearing from You. Thanks!

      D Offline
      D Offline
      Dominik Reichl
      wrote on last edited by
      #2

      Try statically linking the MFC library to your DLL. You can do this in Main Menu: Project - Project Properties - Configuration Settings - General - MFC usage. Change this from shared MFC DLL to statically linking the MFC library. Best regards Dominik


      _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;) (doesn't work on NT)

      E 1 Reply Last reply
      0
      • E eMtek

        Hi! I've built MFC project with VS MFC wizzard, and have included my own source. It's working fine on my computer, but on other computer isn't, because it doesn't have reqired DLLs. My question is, how to attach necessery DLLs to my MFC project, to run it on other comuper whitch doesn't have reqired DLLs? Hope You got the point. Looking forward to hearing from You. Thanks!

        M Offline
        M Offline
        Monty2
        wrote on last edited by
        #3

        You need to copy the required dlls to the other computer's windows directory. This is what installers are used for. Try this installer its free and powerfull http://www.jrsoftware.org/isinfo.php[^] BTW which MFC dll is missing?


        C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

        E J 2 Replies Last reply
        0
        • E eMtek

          Hi! I've built MFC project with VS MFC wizzard, and have included my own source. It's working fine on my computer, but on other computer isn't, because it doesn't have reqired DLLs. My question is, how to attach necessery DLLs to my MFC project, to run it on other comuper whitch doesn't have reqired DLLs? Hope You got the point. Looking forward to hearing from You. Thanks!

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          you can to copy files dll in directory windows or directory application

          1 Reply Last reply
          0
          • D Dominik Reichl

            Try statically linking the MFC library to your DLL. You can do this in Main Menu: Project - Project Properties - Configuration Settings - General - MFC usage. Change this from shared MFC DLL to statically linking the MFC library. Best regards Dominik


            _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;) (doesn't work on NT)

            E Offline
            E Offline
            eMtek
            wrote on last edited by
            #5

            I tried, but now i've got build errors. Reason? Should I add something more to my project?

            1 Reply Last reply
            0
            • M Monty2

              You need to copy the required dlls to the other computer's windows directory. This is what installers are used for. Try this installer its free and powerfull http://www.jrsoftware.org/isinfo.php[^] BTW which MFC dll is missing?


              C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

              E Offline
              E Offline
              eMtek
              wrote on last edited by
              #6

              Monty v2.0 wrote:

              You need to copy the required dlls to the other computer's windows directory. This is what installers are used for.

              Yep i thought so, but how can i know all *.dll-s whitch are needed ? missed dlls - i.e. mfc70d.dll , msvcr70d.dll

              M T 2 Replies Last reply
              0
              • E eMtek

                Monty v2.0 wrote:

                You need to copy the required dlls to the other computer's windows directory. This is what installers are used for.

                Yep i thought so, but how can i know all *.dll-s whitch are needed ? missed dlls - i.e. mfc70d.dll , msvcr70d.dll

                M Offline
                M Offline
                Monty2
                wrote on last edited by
                #7

                eMtek wrote:

                missed dlls - i.e. mfc70d.dll , msvcr70d.dll

                :-D you have build the exe in *debug* mode, change to *release* mode and to test simple copy the required dlls (mfc70.dll , msvcr70.dll) without the 'd', if they are not there already


                C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

                E 1 Reply Last reply
                0
                • M Monty2

                  eMtek wrote:

                  missed dlls - i.e. mfc70d.dll , msvcr70d.dll

                  :-D you have build the exe in *debug* mode, change to *release* mode and to test simple copy the required dlls (mfc70.dll , msvcr70.dll) without the 'd', if they are not there already


                  C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

                  E Offline
                  E Offline
                  eMtek
                  wrote on last edited by
                  #8

                  Yes, you were right. I,m a beginner with this stuff, thus I make so stupid mistakes;) Thanx a lot cheers!

                  1 Reply Last reply
                  0
                  • E eMtek

                    Monty v2.0 wrote:

                    You need to copy the required dlls to the other computer's windows directory. This is what installers are used for.

                    Yep i thought so, but how can i know all *.dll-s whitch are needed ? missed dlls - i.e. mfc70d.dll , msvcr70d.dll

                    T Offline
                    T Offline
                    toxcct
                    wrote on last edited by
                    #9

                    Dependency Walker[^]

                    E 1 Reply Last reply
                    0
                    • T toxcct

                      Dependency Walker[^]

                      E Offline
                      E Offline
                      eMtek
                      wrote on last edited by
                      #10

                      I think, it can be very usefull. Thanx! TC

                      T 1 Reply Last reply
                      0
                      • E eMtek

                        I think, it can be very usefull. Thanx! TC

                        T Offline
                        T Offline
                        toxcct
                        wrote on last edited by
                        #11

                        :cool:

                        1 Reply Last reply
                        0
                        • M Monty2

                          You need to copy the required dlls to the other computer's windows directory. This is what installers are used for. Try this installer its free and powerfull http://www.jrsoftware.org/isinfo.php[^] BTW which MFC dll is missing?


                          C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

                          J Offline
                          J Offline
                          J5121982
                          wrote on last edited by
                          #12

                          how can i use it? can u give me detail desc.. thanks in advance JAYARAJ

                          M 1 Reply Last reply
                          0
                          • J J5121982

                            how can i use it? can u give me detail desc.. thanks in advance JAYARAJ

                            M Offline
                            M Offline
                            Monty2
                            wrote on last edited by
                            #13

                            well if you are asking about inno setup then there are plenty of tutorials on the inno website and internet.


                            C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

                            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