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. .exe file size increased

.exe file size increased

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
8 Posts 2 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.
  • K Offline
    K Offline
    kDevloper
    wrote on last edited by
    #1

    I have a project on VC++ 6.0, the exe file generated out of that was 5 MB,But after conversion to VS2005 it's now 16 MB.what may be the reason? Any thing else is required to reduce the file size. Regards, KDevloper

    J 1 Reply Last reply
    0
    • K kDevloper

      I have a project on VC++ 6.0, the exe file generated out of that was 5 MB,But after conversion to VS2005 it's now 16 MB.what may be the reason? Any thing else is required to reduce the file size. Regards, KDevloper

      J Offline
      J Offline
      Jijo Raj
      wrote on last edited by
      #2

      In the linker settings, disable Incremental Linking. It can slim down your executable drastically. Try Removing unwanted libraries from project settings and check whether it can make any difference. Check this link about how to do it - http://weseetips.com/2008/03/28/how-to-remove-unwanted-libraries-from-project-settings/[^] Regards, Jijo.

      _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

      K 1 Reply Last reply
      0
      • J Jijo Raj

        In the linker settings, disable Incremental Linking. It can slim down your executable drastically. Try Removing unwanted libraries from project settings and check whether it can make any difference. Check this link about how to do it - http://weseetips.com/2008/03/28/how-to-remove-unwanted-libraries-from-project-settings/[^] Regards, Jijo.

        _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

        K Offline
        K Offline
        kDevloper
        wrote on last edited by
        #3

        Hey jijo, I have already followed the way it's there in your blog, But no it's not helping.. any other idea. Thanks&Regards, KDevloper

        J 2 Replies Last reply
        0
        • K kDevloper

          Hey jijo, I have already followed the way it's there in your blog, But no it's not helping.. any other idea. Thanks&Regards, KDevloper

          J Offline
          J Offline
          Jijo Raj
          wrote on last edited by
          #4

          "disable Incremental Linking" doesn't make any difference? I hope you've cleaned and rebuild your project. I've tried it in a sample visual studio 2005 project and i can see good result. Please check once again! Well, the MFC libraries are statically linked? that can increase your exe size.

          kDevloper wrote:

          I have already followed the way it's there in your blog, But no it's not helping.. any other idea.

          Oooh! You already read that one? :rolleyes: Regards, Jijo.

          _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

          K 1 Reply Last reply
          0
          • J Jijo Raj

            "disable Incremental Linking" doesn't make any difference? I hope you've cleaned and rebuild your project. I've tried it in a sample visual studio 2005 project and i can see good result. Please check once again! Well, the MFC libraries are statically linked? that can increase your exe size.

            kDevloper wrote:

            I have already followed the way it's there in your blog, But no it's not helping.. any other idea.

            Oooh! You already read that one? :rolleyes: Regards, Jijo.

            _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

            K Offline
            K Offline
            kDevloper
            wrote on last edited by
            #5

            Yes, am cleaning and rebuilding this 500 bunch of files from last evening.. but i guess the "disable Incremental Linking" and code generation property change helped me to gte out of the problem.. ok thanks. U r posts in the blog is really useful. Regards, KDevloper.

            J 1 Reply Last reply
            0
            • K kDevloper

              Hey jijo, I have already followed the way it's there in your blog, But no it's not helping.. any other idea. Thanks&Regards, KDevloper

              J Offline
              J Offline
              Jijo Raj
              wrote on last edited by
              #6

              Well, did you checked - http://www.codeproject.com/KB/tips/reducesixeexe.aspx[^] It contains a few more improvement points. Have a look at it. Regards, Jijo.

              _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

              K 1 Reply Last reply
              0
              • K kDevloper

                Yes, am cleaning and rebuilding this 500 bunch of files from last evening.. but i guess the "disable Incremental Linking" and code generation property change helped me to gte out of the problem.. ok thanks. U r posts in the blog is really useful. Regards, KDevloper.

                J Offline
                J Offline
                Jijo Raj
                wrote on last edited by
                #7

                kDevloper wrote:

                U r posts in the blog is really useful.

                Thanks a lot for those kind words. :-D Regards, Jijo.

                _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

                1 Reply Last reply
                0
                • J Jijo Raj

                  Well, did you checked - http://www.codeproject.com/KB/tips/reducesixeexe.aspx[^] It contains a few more improvement points. Have a look at it. Regards, Jijo.

                  _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

                  K Offline
                  K Offline
                  kDevloper
                  wrote on last edited by
                  #8

                  ok.. will check it out. Thanks &Regards, KDevloper

                  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