Skip to content

Commit

Permalink
Latest HexCtrl and libpe. Added missing includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jovibor committed Jan 26, 2023
1 parent 9ecd14a commit 5d59e16
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 20 deletions.
1 change: 1 addition & 0 deletions Pepper/CFileLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Pepper is a PE32 (x86) and PE32+ (x64) binares viewer/editor. *
****************************************************************************************************/
#pragma once
#include <afxcontrolbars.h>
#include "HexCtrl.h"

using namespace HEXCTRL;
Expand Down
2 changes: 1 addition & 1 deletion Pepper/CMainFrm.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Pepper is a PE32 (x86) and PE32+ (x64) binares viewer/editor. *
****************************************************************************************************/
#pragma once
#include <afxcontrolbars.h>

import Utility;
using namespace util;
Expand All @@ -25,7 +26,6 @@ class CMainFrame : public CMDIFrameWndEx
afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
LRESULT OnTabActivate(WPARAM wParam, LPARAM lParam);
afx_msg void OnUpdateAppEditmode(CCmdUI* pCmdUI);
afx_msg void OnWindowManager();
BOOL PreCreateWindow(CREATESTRUCT& cs)override;
virtual BOOL PreTranslateMessage(MSG* pMsg);
DECLARE_DYNAMIC(CMainFrame);
Expand Down
1 change: 1 addition & 0 deletions Pepper/CPepperDoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Pepper is a PE32 (x86) and PE32+ (x64) binares viewer/editor. *
****************************************************************************************************/
#pragma once
#include <afxcontrolbars.h>
#include "libpe.h"
#include "CFileLoader.h"

Expand Down
1 change: 1 addition & 0 deletions Pepper/CSplitterEx.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* horzSplit.AddNested(1, 0, &botSplit); //Adding botpSplit as nested to horz(1, 0). *
**************************************************************************************/
#pragma once
#include <afxcontrolbars.h>
#include <vector>

class CSplitterEx : public CSplitterWndEx
Expand Down
1 change: 1 addition & 0 deletions Pepper/CTreeEx.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Pepper is a PE32 (x86) and PE32+ (x64) binares viewer/editor. *
****************************************************************************************************/
#pragma once
#include <afxcontrolbars.h>

class CTreeEx : public CTreeCtrl
{
Expand Down
2 changes: 1 addition & 1 deletion Pepper/CViewLeft.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Pepper is a PE32 (x86) and PE32+ (x64) binares viewer/editor. *
****************************************************************************************************/
#pragma once
#include "CTreeEx.h"
#include "CPepperDoc.h"
#include "CTreeEx.h"

class CViewLeft : public CView
{
Expand Down
1 change: 1 addition & 0 deletions Pepper/CViewRightBL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "stdafx.h"
#include "CViewRightBL.h"
#include "res/resource.h"
#include "strsafe.h"
#include <format>

import Utility;
Expand Down
1 change: 1 addition & 0 deletions Pepper/CViewRightBR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "stdafx.h"
#include "CMainFrm.h"
#include "CViewRightBR.h"
#include "strsafe.h"
#include <format>
#include <unordered_map>
#pragma comment(lib, "Mincore.lib") //VerQueryValueW
Expand Down
1 change: 1 addition & 0 deletions Pepper/CViewRightTL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
****************************************************************************************************/
#include "stdafx.h"
#include "CViewRightTL.h"
#include "strsafe.h"
#include <algorithm>
#include <format>

Expand Down
3 changes: 0 additions & 3 deletions Pepper/Pepper.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@
<ClCompile Include="dep\HexCtrl\HexCtrl\src\CHexSelection.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\CScrollEx.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgBkmMgr.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgBkmProps.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgCallback.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgDataInterp.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgEncoding.cpp" />
Expand Down Expand Up @@ -204,13 +203,11 @@
<ClInclude Include="CPepperDoc.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\dep\ListEx\ListEx.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\HexCtrl.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\HexCtrlDefs.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\res\HexCtrlRes.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\CHexCtrl.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\CHexSelection.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\CScrollEx.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgBkmMgr.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgBkmProps.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgCallback.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgDataInterp.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgEncoding.h" />
Expand Down
9 changes: 0 additions & 9 deletions Pepper/Pepper.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgBkmMgr.cpp">
<Filter>HexCtrl</Filter>
</ClCompile>
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgBkmProps.cpp">
<Filter>HexCtrl</Filter>
</ClCompile>
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgCallback.cpp">
<Filter>HexCtrl</Filter>
</ClCompile>
Expand Down Expand Up @@ -156,9 +153,6 @@
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgBkmMgr.h">
<Filter>HexCtrl</Filter>
</ClInclude>
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgBkmProps.h">
<Filter>HexCtrl</Filter>
</ClInclude>
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgCallback.h">
<Filter>HexCtrl</Filter>
</ClInclude>
Expand Down Expand Up @@ -189,9 +183,6 @@
<ClInclude Include="dep\HexCtrl\HexCtrl\HexCtrl.h">
<Filter>HexCtrl</Filter>
</ClInclude>
<ClInclude Include="dep\HexCtrl\HexCtrl\HexCtrlDefs.h">
<Filter>HexCtrl</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\Pepper.rc">
Expand Down
2 changes: 1 addition & 1 deletion Pepper/Utility.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module;
#include <span>
#include <string>
#include <unordered_map>
#include "HexCtrlDefs.h"
#include "HexCtrl.h"
#include "libpe.h"

#define PEPPER_PRODUCT_NAME L"Pepper"
Expand Down
2 changes: 1 addition & 1 deletion Pepper/dep/libpe
Submodule libpe updated 2 files
+2 −3 src/libpe.cpp
+2 −1 src/libpe.h
4 changes: 1 addition & 3 deletions Pepper/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
// turns off MFC's hiding of some common and often safely ignored warning messages
#define _AFX_ALL_WARNINGS

#include <afxcontrolbars.h> // MFC support for ribbons and control bars
#include "strsafe.h"
#include "libpe.h"
#include <afxcontrolbars.h> // MFC support for ribbons and control bars

0 comments on commit 5d59e16

Please sign in to comment.