Click here to Skip to main content
15,881,413 members
Articles / Desktop Programming / MFC

Remote Control PCs

Rate me:
Please Sign up or sign in to vote.
4.60/5 (150 votes)
20 Sep 2013GPL3 873.1K   63.9K   489  
Two projects that work together to remote control PCs across a LAN.
// Remote Desktop System - remote controlling of multiple PC's
// Copyright (C) 2000-2009 GravyLabs LLC

// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; version 2 of the License.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

// NewConnectionDlg.cpp : implementation file
//

#include "stdafx.h"
#include "RDV.h"
#include "NewConnectionDlg.h"


// CNewConnectionDlg dialog

IMPLEMENT_DYNAMIC(CNewConnectionDlg, CDialog)
CNewConnectionDlg::CNewConnectionDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CNewConnectionDlg::IDD, pParent)
	, m_csIp(_T("localhost"))
	, m_csPort(_T("8370"))
	, m_csPassword(_T("pass"))
{
}

CNewConnectionDlg::~CNewConnectionDlg()
{
}

void CNewConnectionDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_IP, m_csIp);
	DDV_MaxChars(pDX, m_csIp, 255);
	DDX_Text(pDX, IDC_PORT, m_csPort);
	DDV_MaxChars(pDX, m_csPort, 6);
	DDX_Text(pDX, IDC_PASSWORD, m_csPassword);
	DDV_MaxChars(pDX, m_csPassword, 255);
}


BEGIN_MESSAGE_MAP(CNewConnectionDlg, CDialog)
END_MESSAGE_MAP()


// CNewConnectionDlg message handlers

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Founder
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions