CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Location
    India
    Posts
    780

    How can Reduce Final Exe of MFc dialog Based application?

    Hi all,

    i am working on simple Dialog Based application in MFC,when i compile it its size is 2.5 MB,
    than i use Relese option to comile it again but there is not so much change display in exe size.

    so please help me how can i reduce the size of final exe in mfc dialog based application.

    thanks in advance.
    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: How can Reduce Final Exe of MFc dialog Based application?

    Here are few general guidelines (not only for dialog-based applications):
    • Use MFC as a shared DLL and not as a statically linked library;
    • Do not keep large reources like big bitmaps in the executable;
    • Use ASSERT macros to signal programmer mistakes;
    • Use TRACE macros to display info for programmers;
    • Avoid repetitive/redundant/not used code;
    • Make DLLs;
    • ...the list is open.
    Last edited by ovidiucucu; February 27th, 2010 at 02:09 AM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    May 2006
    Location
    beyond the pillars of hercules
    Posts
    295

    Re: How can Reduce Final Exe of MFc dialog Based application?

    use a runtime packer such as UPX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured