C++远程监控系统接收端- ConnectDlg.cpp

阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6

C++远程监控系统接收端- ConnectDlg.cpp

// ConnectDlg.cpp : implementation file
//

#include "stdafx.h"
//#include "mtmdi.h"
#include "ConnectDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


 char AddressIp[80];
/
// CConnectDlg dialog


CConnectDlg::CConnectDlg(CWnd* pParent /*=NULL*/)
    : CDialog(CConnectDlg::IDD, pParent)
{
    //{{AFX_DATA_INIT(CConnectDlg)
    //}}AFX_DATA_INIT
}


void CConnectDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CConnectDlg)
    DDX_Control(pDX, IDC_IPADDRESS1, m_SenderIp);
    //}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CConnectDlg, CDialog)
    //{{AFX_MSG_MAP(CConnectDlg)
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()

/
// CConnectDlg message handlers

void CConnectDlg::OnOK()
{
    // TODO: Add extra validation here
  BYTE bit1,bit2,bit3,bit4;
  m_SenderIp.GetAddress(bit1,bit2,bit3,bit4);
  sprintf(AddressIp, "%d.%d.%d.%d", bit1,bit2,bit3,bit4);
  CDialog::OnOK();
}

阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6
标签: c++