本帖最后由 a20120227 于 2024-5-4 14:16 编辑
How To Compile[color=var(--darkreader-text--fgColor-accent, var(--darkreader-text--color-accent-fg))]
I used 7zip 19 version. But I only changed some of the UI codes. I think it's possible that one can use my files to compile newer versions. use Nukem9's [color=var(--darkreader-text--fgColor-accent, var(--darkreader-text--color-accent-fg))]https://github.com/Nukem9/detours Project to compile detours.lib with compiler setting /Gr and copy detours.lib to CPP\7zip\Bundles\Fm copy my files to the 7zip source folder, replace the old files, and compile. turns out it uses nmake to compile open "Developer Command Prompt for VS 2017" [backcolor=var(--darkreader-bg--bgColor-muted, var(--darkreader-bg--color-canvas-subtle))]cd C:\my7zip\CPP\7zip\Bundles\Fmnmake
compiled file is in [backcolor=var(--darkreader-bg--bgColor-muted, var(--darkreader-bg--color-canvas-subtle))]C:\my7zip\CPP\7zip\Bundles\Fm\O\7FM.exe
///////////////// Change ///////////////////////////[color=var(--darkreader-text--fgColor-accent, var(--darkreader-text--color-accent-fg))]
edited [backcolor=var(--darkreader-bg--bgColor-muted, var(--darkreader-bg--color-canvas-subtle))]CPP\7zip\UI\FileManager\FM.cpp, Cpp\Build.mak, CPP\7zip\UI\FileManager\FM.makCPP\7zip\UI\FileManager\StdAfx.h #define _WIN32_WINNT 0x0600 CPP\7zip\UI\FileManager\Panel.cpp CMyListView::OnMessage Panel.h add header files
Added IatHook.h, DarkMode.h,IatHook.cpp, Darkmode.cpp, Detours.h, EditorUIDarkMode.h, EditorUIDarkMode.cpp (Many files come from links I mentioned, but I edited many contents.)
|