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. Redistributing of exe devloped using VC++ 6.0

Redistributing of exe devloped using VC++ 6.0

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++dotnetvisual-studio
8 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.
  • S Offline
    S Offline
    shir_k
    wrote on last edited by
    #1

    Hi, Do we require .Net framework and MFC runtime to run the exe developed in VC++ 6.0 in the system where Visual studio or VC++ 6.0 is not installed. The exe is built using static linking (set in project setting). Thanks in advance

    C 1 Reply Last reply
    0
    • S shir_k

      Hi, Do we require .Net framework and MFC runtime to run the exe developed in VC++ 6.0 in the system where Visual studio or VC++ 6.0 is not installed. The exe is built using static linking (set in project setting). Thanks in advance

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      If you statically link to the MFC and C runtime libraries, then there's no need to redistribute anything (except if you are using third party dll's). And certainly not the .NET framework...

      Cédric Moonen Software developer
      Charting control [v2.0] OpenGL game tutorial in C++

      S 1 Reply Last reply
      0
      • C Cedric Moonen

        If you statically link to the MFC and C runtime libraries, then there's no need to redistribute anything (except if you are using third party dll's). And certainly not the .NET framework...

        Cédric Moonen Software developer
        Charting control [v2.0] OpenGL game tutorial in C++

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

        Thanks for the quick reply. One clarification by setting Use MFC static libraty in the General tab of project setting means both MFC and C runtime libraries are statically linked, am i correct?

        CPalliniC 1 Reply Last reply
        0
        • S shir_k

          Thanks for the quick reply. One clarification by setting Use MFC static libraty in the General tab of project setting means both MFC and C runtime libraries are statically linked, am i correct?

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          shir_k wrote:

          by setting Use MFC static libraty in the General tab of project setting means both MFC and C runtime libraries are statically linked, am i correct?

          Nope. They are independent settings. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          In testa che avete, signor di Ceprano?

          S 1 Reply Last reply
          0
          • CPalliniC CPallini

            shir_k wrote:

            by setting Use MFC static libraty in the General tab of project setting means both MFC and C runtime libraries are statically linked, am i correct?

            Nope. They are independent settings. :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

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

            Please let me know how to set it.

            CPalliniC 1 Reply Last reply
            0
            • S shir_k

              Please let me know how to set it.

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #6

              Select _Project-name_->Properties menu item, then (in the newly appeared window) select the Configuration Properties->C/C++->Code Generation node, finally select the Runtime Library item of the list and set it choosing the proper value (for instance Multi-threaded instead of Multi-threaded DLL). :) BTW you may also choose to link with the DLL and then use the Microsoft Visual C++ Redistributable Package (see, for instance, here [^]) to install the required copmponents on the target machine. :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              In testa che avete, signor di Ceprano?

              P 1 Reply Last reply
              0
              • CPalliniC CPallini

                Select _Project-name_->Properties menu item, then (in the newly appeared window) select the Configuration Properties->C/C++->Code Generation node, finally select the Runtime Library item of the list and set it choosing the proper value (for instance Multi-threaded instead of Multi-threaded DLL). :) BTW you may also choose to link with the DLL and then use the Microsoft Visual C++ Redistributable Package (see, for instance, here [^]) to install the required copmponents on the target machine. :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                [My articles]

                P Offline
                P Offline
                PJ Arends
                wrote on last edited by
                #7

                The OP said he was using VC6 and the link to the redistributable that you gave was for VC2008. The VC2008 redist will not work with VC6. The VC6 redist was included in the VC6 SP5 and SP6. Alternately you can get the SP4 file here[^].


                You may be right I may be crazy -- Billy Joel -- Within you lies the power for good - Use it!

                S 1 Reply Last reply
                0
                • P PJ Arends

                  The OP said he was using VC6 and the link to the redistributable that you gave was for VC2008. The VC2008 redist will not work with VC6. The VC6 redist was included in the VC6 SP5 and SP6. Alternately you can get the SP4 file here[^].


                  You may be right I may be crazy -- Billy Joel -- Within you lies the power for good - Use it!

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

                  Thanks for the 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