Skip to content

Commit ea10dcf

Browse files
committed
no message
1 parent a9d65ea commit ea10dcf

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

tool3/MainFrm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ VOID c(VOID *x)
117117
fw.flags=4;
118118
fw.codepage=1200;
119119
std::string timestamp = CW2A((LPCWSTR)mount_tx->m_timestamp);
120-
std::string pubkey = CW2A((LPCWSTR)mount_tx->m_pubkey);
120+
std::string pubkey = CW2A((LPCWSTR)mount_tx->m_pkey);
121121
uint32_t nBits = mount_tx->m_nb;
122122

123123
unsigned char hash1[32], serializedData[857];
@@ -257,7 +257,7 @@ void CMainFrame::uw()
257257
{
258258
mount_tx->m_nb=mount_txn->m_nb;
259259
mount_tx->m_nonce=mount_txn->m_nonce;
260-
mount_tx->m_pubkey=mount_txn->m_pubkey;
260+
mount_tx->m_pkey=mount_txn->m_pkey;
261261
mount_tx->m_timestamp=mount_txn->m_timestamp;
262262
mount_tx->m_ut=mount_txn->m_ut;
263263
delete mount_txn;

tool3/makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
CC=cl
2-
CFLAGS=-c -DSTRICT -G3 -Ow -W3 -Zp -Tp
3-
CFLAGSMT=-c /D_WIN64 /D_AFXDLL /MD /nologo /W3 /WX- /O2 /Oi /Ot /Oy- /DWIN32 /D_WINDOWS /DNDEBUG /D_UNICODE /DUNICODE /Gm- /GS- /Gy /arch:SSE2 /fp:precise /Zc:wchar_t /Zc:forScope /Fax64\Release\ /Fox64\Release\ /Fdx64\Release\vc100.pdb /Gd /errorReport:none
2+
CFLAGSMT=-c /D_WIN64 /D"_ATL_DLL" /D"_AFXDLL" /MD /nologo /W3 /WX- /O2 /Oi /Ot /Oy- /DWIN32 /D_WINDOWS /DNDEBUG /D_UNICODE /DUNICODE /Gm- /GS- /Gy /arch:SSE2 /fp:precise /Zc:wchar_t /Zc:forScope /Fax64\Release\ /Fox64\Release\ /Fdx64\Release\vc100.pdb /Gd /errorReport:none
43
LINKER=link
54
GUIFLAGS=-SUBSYSTEM:windows /OUT:x64\Release\tool3.exe /NOLOGO /PDB:"x64\Release\tool3.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:NOICF /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ERRORREPORT:NONE /ENTRY:wWinMainCRTStartup
65
DLLFLAGS=-SUBSYSTEM:windows -DLL
@@ -14,7 +13,7 @@ docks : trail x64\Release\tool3.exe
1413
$(MT) $(MTSTUFF) -outputresource:x64\Release\tool3.exe
1514

1615
x64\Release\tool3.exe : x64\Release\tool3.obj x64\Release\MainFrm.obj x64\Release\mount.obj x64\Release\tool3.res
17-
$(LINKER) $(GUIFLAGS) x64\Release\MainFrm.obj x64\Release\tool3.obj x64\Release\mount.obj x64\Release\tool3.res $(GUILIBS)
16+
$(LINKER) $(GUIFLAGS) x64\Release\MainFrm.obj x64\Release\tool3.obj x64\Release\mount.obj x64\Release\tool3.res $(GUILIBS)
1817

1918
trail:
2019
-@ if NOT EXIST "x64" mkdir "x64"

tool3/mount.cpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ IMPLEMENT_DYNAMIC(mount, CDialogEx)
1313

1414
mount::mount(CWnd* pParent /*=NULL*/)
1515
: CDialogEx(mount::IDD, pParent)
16+
, m_nb(0)
17+
, m_ut(0)
18+
, m_nonce(0)
1619
{
1720
m_nonce = 0;
1821
m_ut = 0;
1922
m_nb = 0;
23+
m_pkey = _T("");
2024
m_timestamp = _T("");
21-
m_pubkey = _T("");
2225
}
2326

2427
mount::~mount()
@@ -30,13 +33,13 @@ mount::~mount()
3033
void mount::DoDataExchange(CDataExchange* pDX)
3134
{
3235
CDialogEx::DoDataExchange(pDX);
33-
DDX_Text(pDX, IDC_EDIT5, m_nonce);
34-
DDX_Text(pDX, IDC_EDIT4, m_ut);
35-
DDX_Text(pDX, IDC_EDIT3, m_nb);
36-
DDX_Text(pDX, IDC_EDIT2, m_timestamp);
36+
DDX_Text(pDX, IDC_RICHEDIT21, m_pkey);
37+
DDV_MaxChars(pDX, m_pkey, 65);
38+
DDX_Text(pDX, IDC_RICHEDIT22, m_timestamp);
3739
DDV_MaxChars(pDX, m_timestamp, 254);
38-
DDX_Text(pDX, IDC_EDIT1, m_pubkey);
39-
DDV_MaxChars(pDX, m_pubkey, 130);
40+
DDX_Text(pDX, IDC_RICHEDIT23, m_nb);
41+
DDX_Text(pDX, IDC_RICHEDIT24, m_ut);
42+
DDX_Text(pDX, IDC_RICHEDIT25, m_nonce);
4043
}
4144

4245
BEGIN_MESSAGE_MAP(mount, CDialogEx)

tool3/mount.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ class mount : public CDialogEx
1919

2020
DECLARE_MESSAGE_MAP()
2121
public:
22-
UINT m_nonce;
2322
afx_msg void OnBnClickedButton1();
24-
UINT m_ut;
25-
UINT m_nb;
23+
CString m_pkey;
2624
CString m_timestamp;
27-
CString m_pubkey;
25+
UINT m_nb;
26+
UINT m_ut;
27+
UINT m_nonce;
2828
};

tool3/resource.h

460 Bytes
Binary file not shown.

tool3/stdafx.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
#include <afxcontrolbars.h>
3131

3232
//#include <afxcontrolbars.h> // MFC support for ribbons and control bars
33-
#ifdef _MSC_VER
3433
#pragma comment(lib,"libcrypto.lib")
35-
#endif
34+
3635

3736

3837
#ifdef _UNICODE

tool3/tool3.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ BOOL Ctool3App::InitInstance()
5050

5151
CWinApp::InitInstance();
5252
h=this->m_hInstance;
53-
53+
AfxInitRichEdit2();
5454
// Parse command line for standard shell commands, DDE, file open
5555
CCommandLineInfo cmdInfo;
5656
ParseCommandLine(cmdInfo);
57-
5857
EnableTaskbarInteraction(FALSE);
5958

6059
b=LoadLibrary(L"MSFTEDIT.DLL"); //richedit

tool3/tool3.rc

516 Bytes
Binary file not shown.

x64/Release/tool3.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)