-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathremote.cpp
More file actions
64 lines (48 loc) · 1.08 KB
/
remote.cpp
File metadata and controls
64 lines (48 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// remote.cpp : implementation file
//
#include "stdafx.h"
#include "mobymon.h"
#include "remote.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// remote dialog
remote::remote(CWnd* pParent /*=NULL*/)
: CDialog(remote::IDD, pParent)
{
//{{AFX_DATA_INIT(remote)
m_server_name = _T("");
//}}AFX_DATA_INIT
}
void remote::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(remote)
DDX_Text(pDX, IDC_EDIT2, m_server_name);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(remote, CDialog)
//{{AFX_MSG_MAP(remote)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// remote message handlers
void remote::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
void remote::OnOK()
{
char a;
int b;
// put the CString m_server_name into char s //
CDialog::OnOK();
b=m_server_name.GetLength()-1;
for (a=0;a<=b;a++)
s[a]=m_server_name.GetAt(a);
s[a]=0;
}