Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

This can be done by excluding some features that may be redundant in your project. Prof-UIS is designed in a way that the base source code is the same for Prof-UIS Freeware and for the full version. In the Prof-UIS.h file you can find constants that begin with __EXT_MFC_NO_ (e.g., __EXT_MFC_NO_GRIDBASEWND ). In Prof-UIS Freeware the preprocessor directives that declare these constants are not commented and thus their corresponding features are excluded from the free version. In a similar way, you can exclude some features from the full commercial version and hence make the library of a smaller size. For instance, if you do not need the grid control and your application is not customizable, just uncomment the lines below:

//#define __EXT_MFC_NO_GRIDBASEWND
//#define __EXT_MFC_NO_GRIDWND
//#define __EXT_MFC_NO_CUSTOMIZE

Now the code without these features looks like this:

#define __EXT_MFC_NO_GRIDBASEWND
#define __EXT_MFC_NO_GRIDWND
#define __EXT_MFC_NO_CUSTOMIZE

You can also reduce the library size by excluding Office2007 paint managers. To do this, just comment the following line in the Prof-UIS\Include\Resources\resource.rc resource file:

#include "Res2007\\Res2007.rc"

The last thing you can do to reduce the library size is to exclude unneeded international language resources. Just uncomment all the lines with unneeded languages:

#define __EXT_MFC_NO_RESOURCES_

NOTE: To take these changes into effect, do not forget to recompile the library.