Click here to Skip to main content
12,763,226 members (31,390 online)
Click here to Skip to main content


471 bookmarked
Posted 23 May 2000

Remote Control PCs

, 20 Sep 2013 GPL3
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
// 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.

// RDS.cpp : Defines the class behaviors for the application.

#include "stdafx.h"
#include "..\Common.h"
#include "RDS.h"
#include "RDSDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW

// CRDSApp


// CRDSApp construction

	// Initialize the O/S version information

	// Output the licensing disclaimer
    DebugMsg("Remote Desktop System, Copyright (C) 2000-2009 GravyLabs LLC\n");
    DebugMsg("GravyLabs LLC can be reached at\n");
    DebugMsg("Remote Desktop System comes with ABSOLUTELY NO WARRANTY\n");
    DebugMsg("This is free software, and you are welcome to redistribute it\n");
    DebugMsg("under of the GNU General Public License as published by\n");
	DebugMsg("the Free Software Foundation; version 2 of the License.\n");

// The one and only CRDSApp object

CRDSApp theApp;

// CRDSApp initialization

BOOL CRDSApp::InitInstance()
	// InitCommonControls() is required on Windows XP if an application
	// manifest specifies use of ComCtl32.dll version 6 or later to enable
	// visual styles.  Otherwise, any window creation will fail.


	if (!AfxSocketInit())
		return FALSE;

	// Standard initialization
	// If you are not using these features and wish to reduce the size
	// of your final executable, you should remove from the following
	// the specific initialization routines you do not need
	// Change the registry key under which our settings are stored
	// TODO: You should modify this string to be something appropriate
	// such as the name of your company or organization
	SetRegistryKey(_T("Local AppWizard-Generated Applications"));

	// Test the O/S version information for XP or later
	if (IsWinNT() && IsWinVerOrHigher(5,1))
		CRDSDlg dlg;
		m_pMainWnd = &dlg;
		AfxMessageBox("Requires Windows XP or later");

	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;

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.


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


About the Author

Andy Bantly
United States United States
Working as a software developer since 1989. Started out with Basic, FORTRAN and JCL, moved into Visual Basic 1.0, C, then C++, and now I work mainly in C++ using MFC, Win32, and ATL/COM. I use Microsoft Products only because that is what gives me gainful employment. Through work, I have a lot of experience with HTML, JavaScript, XSL transformations, the XMLHTTP object, PHP 4.x, and simple COM object integrations.

I've worked for the University of Oklahoma in the school of meteorology (Go SOONERS!), consulting, and now as a Senior Software Engineer. These things keep my lights on and electricity going. My dream job is to own a bowling alley and rub elbows with pro-bowlers! I'm also an avid pedicab driver and have my own cab. I like the hustle of picking up people in downtown and biking them to their destination.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 20 Sep 2013
Article Copyright 2000 by Andy Bantly
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid