Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Executable size Collapse All
Subject Author Date
John Ritzenthaler Dec 4, 2008 - 2:33 PM

I’m just learning Prof-UIS so I created an application that uses toolbars, the statusbar and a few controls.  When I compile it in Release mode with static libraries, the executable is 6.7MB.


I followed your instructions on size reduction, un-commenting all the Prof-UIS.h defines except:



//#define __EXT_MFC_NO_DYNAMIC_BAR_SITE

//#define __EXT_MFC_NO_SCROLLWND

//#define __EXT_MFC_NO_STATUSBAR

//#define __EXT_MFC_NO_NC_FRAME



I also excluded all the foreign languages.  And yes, I did rebuild the libraries.


Why is it still so huge?

Technical Support Dec 9, 2008 - 10:00 AM

Prof-UIS currently does not support pre-processor macros variables for excluding particular paint manager classes from the build. But, if you don’t need the Office 2007 themes, you can comment out the following line in the ...\Include\Resources\resource.rc file:

#include "Res2007\\Res2007.rc"
This should make the Prof-UIS smaller than any other code exclusions.

John Ritzenthaler Dec 8, 2008 - 9:06 AM

Is there a way to include just ONE of the themes?

Technical Support Dec 6, 2008 - 7:58 AM

Since the Office 2007 themes appeared in Prof-UIS, you no longer have any reason to exclude some parts of code to reduce the library size. The big size is provided by Office 2007 theme resources rather than by source code. Take a look at the ...\Prof-UIS\Include\Resources\Res2007\ folder. All the bitmaps in this folder are present in Prof-UIS resources. The big resources do not affect the DLL code loading speed.