Skip to content

Conversation

@nbb1967
Copy link

@nbb1967 nbb1967 commented Jan 20, 2026

The program's resources currently contain over 650 unused resources: PNG, BMP, cursors, icons, XML styles, dialogs, and strings missing from the program (toolbar elements, ribbons, skins, etc.). I first removed them from your 1.4.4.7 file using ResHacker to ensure the file would still work without these resources.

Then I commented out four lines in the cppcryptfs.rc file.

56	//"#include ""afxres.rc""      // Standard components\r\n"
58	//"#include ""afxribbon.rc""   // MFC ribbon and control bar resources\r\n"
485	//#include "afxres.rc"      // Standard components
487	//#include "afxribbon.rc"   // MFC ribbon and control bar resources

I built cppcryptfs (x64) from source, following the author's instructions exactly. There were no build errors. The program size decreased by 1.35 MB (18%). cppcryptfs.exe now only contains its own resources.

I tested the functionality of the created cppcryptfs.exe on Win 10 Pro and Win 11 Pro.

Disable #include afxres.rc & afxribbon.rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant