?? convertdlg.h
字號:
// convertDlg.h : header file
//
#if !defined(AFX_CONVERTDLG_H__A5F29932_FBB7_477C_B2D5_96C8C8CEAD6C__INCLUDED_)
#define AFX_CONVERTDLG_H__A5F29932_FBB7_477C_B2D5_96C8C8CEAD6C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CConvertDlg dialog
class CConvertDlg : public CDialog
{
// Construction
public:
CConvertDlg(CWnd* pParent = NULL); // standard constructor
CString my_filename;
CString lpszPathName;
BYTE LookUp(CHAR dec);
CHAR * lpBuf;
BYTE * lpDes;
int count;
struct FileHeader
{
unsigned short id;
unsigned short section_num;
int time;
UINT file_point;
UINT entry_num;
unsigned short op_header_size;
unsigned short flag;
unsigned short target;
};
struct OpHeader
{
short magic_num;
short version;
UINT code_size;
UINT data_size;
UINT undata_size;
UINT entry;
UINT code_addr;
UINT data_addr;
};
struct Section
{
char name[8];
UINT addr;
UINT virtual_addr;
UINT size;
UINT p_data;
UINT p_relocation;
UINT rev1;
unsigned int relocation_num;
unsigned int rev2;
unsigned int flag;
unsigned short rev3;
unsigned short page_num;
};
struct Relocation
{
int virtual_addr;
short symbol_index;
unsigned short rev;
unsigned short type;
};
struct TableEntry
{
char name[8];
int sym_value;
short section_num;
unsigned short rev;
char sym_class;
char aux_entry;
};
bool FlagAnalysis(struct Section ss);
bool SectionProcess(struct Section ss);
// Dialog Data
//{{AFX_DATA(CConvertDlg)
enum { IDD = IDD_CONVERT_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CConvertDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CConvertDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnOpen();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CONVERTDLG_H__A5F29932_FBB7_477C_B2D5_96C8C8CEAD6C__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -