svn -> git Migration

This commit is contained in:
KimLS
2013-02-16 16:14:39 -08:00
parent 88c9715fb0
commit da7347f76f
1174 changed files with 445622 additions and 0 deletions
+75
View File
@@ -0,0 +1,75 @@
// HexRichEdit.cpp : implementation file
//
#include "stdafx.h"
#include "hexvis.h"
#include "HexRichEdit.h"
#include "hexvisDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// HexRichEdit
HexRichEdit::HexRichEdit()
: parent(NULL)
{
}
HexRichEdit::~HexRichEdit()
{
}
BEGIN_MESSAGE_MAP(HexRichEdit, CRichEditCtrl)
//{{AFX_MSG_MAP(HexRichEdit)
ON_WM_KEYDOWN()
ON_WM_KEYUP()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// HexRichEdit message handlers
void HexRichEdit::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
switch(nChar) {
case VK_LEFT:
if(parent != NULL)
parent->PrevByte();
return;
case VK_UP:
if(parent != NULL)
parent->PrevLine();
return;
case VK_RIGHT:
if(parent != NULL)
parent->NextByte();
return;
case VK_DOWN:
if(parent != NULL)
parent->NextLine();
return;
}
CRichEditCtrl::OnKeyDown(nChar, nRepCnt, nFlags);
}
void HexRichEdit::OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags)
{
switch(nChar) {
case VK_LEFT:
case VK_UP:
case VK_RIGHT:
case VK_DOWN:
return; /* just make sure these dont get processed */
}
// TODO: Add your message handler code here and/or call default
CRichEditCtrl::OnKeyUp(nChar, nRepCnt, nFlags);
}
+52
View File
@@ -0,0 +1,52 @@
#if !defined(AFX_HEXRICHEDIT_H__29F129EE_0086_45A7_8A61_7ACCB6507BCE__INCLUDED_)
#define AFX_HEXRICHEDIT_H__29F129EE_0086_45A7_8A61_7ACCB6507BCE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// HexRichEdit.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// HexRichEdit window
class CHexvisDlg;
class HexRichEdit : public CRichEditCtrl
{
// Construction
public:
HexRichEdit();
// Attributes
public:
CHexvisDlg *parent;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(HexRichEdit)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~HexRichEdit();
// Generated message map functions
protected:
//{{AFX_MSG(HexRichEdit)
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HEXRICHEDIT_H__29F129EE_0086_45A7_8A61_7ACCB6507BCE__INCLUDED_)
+8
View File
@@ -0,0 +1,8 @@
// stdafx.cpp : source file that includes just the standard includes
// hexvis.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
+27
View File
@@ -0,0 +1,27 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__2BA1C837_5B64_460A_9580_0ECEDF126247__INCLUDED_)
#define AFX_STDAFX_H__2BA1C837_5B64_460A_9580_0ECEDF126247__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__2BA1C837_5B64_460A_9580_0ECEDF126247__INCLUDED_)
+95
View File
@@ -0,0 +1,95 @@
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CHexvisDlg
LastTemplate=CRichEditCtrl
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "hexvis.h"
ClassCount=4
Class1=CHexvisApp
Class2=CHexvisDlg
Class3=CAboutDlg
ResourceCount=3
Resource1=IDD_ABOUTBOX
Resource2=IDR_MAINFRAME
Class4=HexRichEdit
Resource3=IDD_HEXVIS_DIALOG
[CLS:CHexvisApp]
Type=0
HeaderFile=hexvis.h
ImplementationFile=hexvis.cpp
Filter=N
[CLS:CHexvisDlg]
Type=0
HeaderFile=hexvisDlg.h
ImplementationFile=hexvisDlg.cpp
Filter=D
BaseClass=CDialog
VirtualFilter=dWC
LastObject=CHexvisDlg
[CLS:CAboutDlg]
Type=0
HeaderFile=hexvisDlg.h
ImplementationFile=hexvisDlg.cpp
Filter=D
[DLG:IDD_ABOUTBOX]
Type=1
Class=CAboutDlg
ControlCount=4
Control1=IDC_STATIC,static,1342177283
Control2=IDC_STATIC,static,1342308480
Control3=IDC_STATIC,static,1342308352
Control4=IDOK,button,1342373889
[DLG:IDD_HEXVIS_DIALOG]
Type=1
Class=CHexvisDlg
ControlCount=31
Control1=IDC_PACKET_BODY,RICHEDIT,1353781700
Control2=IDC_PROCESS,button,1342242817
Control3=IDC_CLEAR,button,1342242816
Control4=IDC_LOAD_FILE,button,1342242816
Control5=IDC_SEARCH_NUMBER,edit,1350631552
Control6=IDC_FIND_NUMBER,button,1342242816
Control7=IDC_STATIC,button,1342177287
Control8=IDC_STATIC,static,1342308352
Control9=IDC_BYTE,edit,1350633600
Control10=IDC_STATIC,static,1342308352
Control11=IDC_SHORT_BE,edit,1350633600
Control12=IDC_SHORT_LE,edit,1350633600
Control13=IDC_STATIC,static,1342308352
Control14=IDC_LONG_BE,edit,1350633600
Control15=IDC_LONG_LE,edit,1350633600
Control16=IDC_STATIC,static,1342308352
Control17=IDC_UNIX_TIME,edit,1350633600
Control18=IDC_STATIC,static,1342308352
Control19=IDC_REAL,edit,1350633600
Control20=IDC_STATIC,static,1342308352
Control21=IDC_INT64_BE,edit,1350633600
Control22=IDC_INT64_LE,edit,1350633600
Control23=IDC_STATIC,static,1342308352
Control24=IDC_STRING,edit,1350633600
Control25=IDC_STATIC,static,1342308352
Control26=IDC_OFFSET,edit,1350633600
Control27=IDC_STATIC,static,1342308352
Control28=IDC_STATIC,static,1342308352
Control29=IDC_BIN_REP,edit,1350633600
Control30=IDC_STATE,static,1342308352
Control31=IDC_COPY_TO_CLIP,button,1342242816
[CLS:HexRichEdit]
Type=0
HeaderFile=HexRichEdit.h
ImplementationFile=HexRichEdit.cpp
BaseClass=CRichEditCtrl
Filter=W
VirtualFilter=WC
LastObject=HexRichEdit
+75
View File
@@ -0,0 +1,75 @@
// hexvis.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "hexvis.h"
#include "hexvisDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHexvisApp
BEGIN_MESSAGE_MAP(CHexvisApp, CWinApp)
//{{AFX_MSG_MAP(CHexvisApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CHexvisApp construction
CHexvisApp::CHexvisApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CHexvisApp object
CHexvisApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CHexvisApp initialization
BOOL CHexvisApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
AfxInitRichEdit();
CHexvisDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}
+154
View File
@@ -0,0 +1,154 @@
# Microsoft Developer Studio Project File - Name="hexvis" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=hexvis - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "hexvis.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "hexvis.mak" CFG="hexvis - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "hexvis - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "hexvis - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "hexvis - Win32 Release"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Yu"stdafx.h" /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386
# ADD LINK32 /nologo /subsystem:windows /machine:I386
!ELSEIF "$(CFG)" == "hexvis - Win32 Debug"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FR /Yu"stdafx.h" /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "hexvis - Win32 Release"
# Name "hexvis - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\HexRichEdit.cpp
# End Source File
# Begin Source File
SOURCE=.\hexvis.cpp
# End Source File
# Begin Source File
SOURCE=.\hexvis.rc
# End Source File
# Begin Source File
SOURCE=.\hexvisDlg.cpp
# End Source File
# Begin Source File
SOURCE=.\StdAfx.cpp
# ADD CPP /Yc"stdafx.h"
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\HexRichEdit.h
# End Source File
# Begin Source File
SOURCE=.\hexvis.h
# End Source File
# Begin Source File
SOURCE=.\hexvisDlg.h
# End Source File
# Begin Source File
SOURCE=.\Resource.h
# End Source File
# Begin Source File
SOURCE=.\StdAfx.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=.\res\hexvis.ico
# End Source File
# Begin Source File
SOURCE=.\res\hexvis.rc2
# End Source File
# End Group
# Begin Source File
SOURCE=.\ReadMe.txt
# End Source File
# End Target
# End Project
+29
View File
@@ -0,0 +1,29 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "hexvis"=.\hexvis.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
+49
View File
@@ -0,0 +1,49 @@
// hexvis.h : main header file for the HEXVIS application
//
#if !defined(AFX_HEXVIS_H__4CCA845D_D36E_41F3_A82B_A1D8A2360F84__INCLUDED_)
#define AFX_HEXVIS_H__4CCA845D_D36E_41F3_A82B_A1D8A2360F84__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CHexvisApp:
// See hexvis.cpp for the implementation of this class
//
class CHexvisApp : public CWinApp
{
public:
CHexvisApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHexvisApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CHexvisApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HEXVIS_H__4CCA845D_D36E_41F3_A82B_A1D8A2360F84__INCLUDED_)
+239
View File
@@ -0,0 +1,239 @@
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
"#define _AFX_NO_OLE_RESOURCES\r\n"
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
"\r\n"
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
"#ifdef _WIN32\r\n"
"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"
"#endif //_WIN32\r\n"
"#include ""res\\hexvis.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#endif\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME ICON DISCARDABLE "res\\hexvis.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About hexvis"
FONT 8, "MS Sans Serif"
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
LTEXT "hexvis Version 1.2",IDC_STATIC,40,10,119,8,SS_NOPREFIX
LTEXT "Copyright (C) 2006",IDC_STATIC,40,25,119,8
DEFPUSHBUTTON "OK",IDOK,178,7,50,14,WS_GROUP
END
IDD_HEXVIS_DIALOG DIALOGEX 0, 0, 387, 314
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "hexvis"
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "",IDC_PACKET_BODY,"RICHEDIT",ES_MULTILINE |
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_NOHIDESEL |
ES_WANTRETURN | WS_BORDER | WS_VSCROLL | WS_HSCROLL |
WS_TABSTOP,7,7,373,107
DEFPUSHBUTTON "Process",IDC_PROCESS,330,116,50,12
PUSHBUTTON "Clear",IDC_CLEAR,263,116,50,12
PUSHBUTTON "Load File",IDC_LOAD_FILE,330,135,50,12
EDITTEXT IDC_SEARCH_NUMBER,39,128,63,12,ES_AUTOHSCROLL
PUSHBUTTON "Find",IDC_FIND_NUMBER,107,128,26,12
GROUPBOX "Field Values",IDC_STATIC,7,151,373,151
LTEXT "Byte:",IDC_STATIC,154,166,20,8
EDITTEXT IDC_BYTE,175,163,62,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "Short:",IDC_STATIC,24,183,21,8
EDITTEXT IDC_SHORT_BE,50,180,99,14,ES_AUTOHSCROLL | ES_READONLY
EDITTEXT IDC_SHORT_LE,50,197,99,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "Long:",IDC_STATIC,154,182,19,8
EDITTEXT IDC_LONG_BE,175,180,199,14,ES_AUTOHSCROLL | ES_READONLY
EDITTEXT IDC_LONG_LE,175,197,199,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "UNIX Time:",IDC_STATIC,11,216,38,8
EDITTEXT IDC_UNIX_TIME,50,214,324,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "Real:",IDC_STATIC,24,233,21,8
EDITTEXT IDC_REAL,50,231,324,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "INT64:",IDC_STATIC,22,250,21,8
EDITTEXT IDC_INT64_BE,50,248,324,14,ES_AUTOHSCROLL | ES_READONLY
EDITTEXT IDC_INT64_LE,50,265,324,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "String:",IDC_STATIC,23,283,21,8
EDITTEXT IDC_STRING,50,282,324,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "Offset:",IDC_STATIC,23,168,23,8
EDITTEXT IDC_OFFSET,50,163,99,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "Number:",IDC_STATIC,7,130,28,8
LTEXT "Binary:",IDC_STATIC,250,165,21,8
EDITTEXT IDC_BIN_REP,274,163,100,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "Paste text above an process",IDC_STATE,7,117,191,8
PUSHBUTTON "Copy",IDC_COPY_TO_CLIP,263,134,50,12
END
#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "\0"
VALUE "FileDescription", "hexvis MFC Application\0"
VALUE "FileVersion", "1, 0, 0, 1\0"
VALUE "InternalName", "hexvis\0"
VALUE "LegalCopyright", "Copyright (C) 2006\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "hexvis.EXE\0"
VALUE "ProductName", "hexvis Application\0"
VALUE "ProductVersion", "1, 0, 0, 1\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
#endif // !_MAC
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 228
TOPMARGIN, 7
BOTTOMMARGIN, 48
END
IDD_HEXVIS_DIALOG, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 380
VERTGUIDE, 50
VERTGUIDE, 374
TOPMARGIN, 7
BOTTOMMARGIN, 307
HORZGUIDE, 128
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
IDS_ABOUTBOX "&About hexvis..."
END
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\hexvis.rc2" // non-Microsoft Visual C++ edited resources
#include "afxres.rc" // Standard components
#endif
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
File diff suppressed because it is too large Load Diff
+100
View File
@@ -0,0 +1,100 @@
// hexvisDlg.h : header file
//
#if !defined(AFX_HEXVISDLG_H__CA785941_36B6_4928_A1EB_B189A9AE2EA2__INCLUDED_)
#define AFX_HEXVISDLG_H__CA785941_36B6_4928_A1EB_B189A9AE2EA2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "HexRichEdit.h"
#include <vector>
/////////////////////////////////////////////////////////////////////////////
// CHexvisDlg dialog
class CHexvisDlg : public CDialog
{
// Construction
public:
CHexvisDlg(CWnd* pParent = NULL); // standard constructor
void PrevByte();
void NextByte();
void PrevLine();
void NextLine();
// Dialog Data
//{{AFX_DATA(CHexvisDlg)
enum { IDD = IDD_HEXVIS_DIALOG };
CStatic m_status;
CEdit m_binRep;
CEdit m_searchNumber;
CEdit m_offset;
CEdit m_unix_time;
CEdit m_string;
CEdit m_short_le;
CEdit m_short_be;
CEdit m_real;
HexRichEdit m_packetBody;
CEdit m_long_le;
CEdit m_long_be;
CEdit m_int64_le;
CEdit m_int64_be;
CEdit m_byte;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHexvisDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
bool m_processed;
int m_offsetStart;
int m_activeByte;
std::vector<unsigned char> m_digits;
std::vector<unsigned long> m_lineStarts;
void ProcessLine(const char *line, int len);
bool _ProcessDigits(const char *startnum, int numlen);
void DisplayDigits();
void AnalyzeBytes(int byte);
void SelectByte(int byte);
void build_hex_line(const char *buffer, unsigned long length, unsigned long offset, unsigned char padding);
typedef struct {
unsigned __int64 intval;
double dval;
float fval;
} FindSpec;
bool FindNumber(int offset, const FindSpec *f);
// Generated message map functions
//{{AFX_MSG(CHexvisDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnProcess();
afx_msg void OnUpdatePacketBody();
afx_msg void OnSelchangePacketBody(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnClear();
afx_msg void OnFindNumber();
afx_msg void OnLoadFile();
afx_msg void OnCopyToClip();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HEXVISDLG_H__CA785941_36B6_4928_A1EB_B189A9AE2EA2__INCLUDED_)
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+13
View File
@@ -0,0 +1,13 @@
//
// HEXVIS.RC2 - resources Microsoft Visual C++ does not edit directly
//
#ifdef APSTUDIO_INVOKED
#error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
// Add manually edited resources here...
/////////////////////////////////////////////////////////////////////////////
+40
View File
@@ -0,0 +1,40 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by hexvis.rc
//
#define IDM_ABOUTBOX 0x0010
#define IDD_ABOUTBOX 100
#define IDS_ABOUTBOX 101
#define IDD_HEXVIS_DIALOG 102
#define IDR_MAINFRAME 128
#define IDC_PACKET_BODY 1000
#define IDC_PROCESS 1001
#define IDC_BYTE 1002
#define IDC_SHORT_BE 1003
#define IDC_SHORT_LE 1004
#define IDC_LONG_BE 1005
#define IDC_LONG_LE 1006
#define IDC_UNIX_TIME 1007
#define IDC_REAL 1008
#define IDC_INT64_BE 1009
#define IDC_INT64_LE 1010
#define IDC_STRING 1011
#define IDC_OFFSET 1012
#define IDC_CLEAR 1013
#define IDC_SEARCH_NUMBER 1014
#define IDC_FIND_NUMBER 1015
#define IDC_BIN_REP 1016
#define IDC_STATE 1017
#define IDC_LOAD_FILE 1018
#define IDC_COPY_TO_CLIP 1019
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 129
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1018
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif