RedRatCom v1.11

Welcome to RedRatCom, a simple COM based library which can be used to support the "RedRat2" Infra-red communications transmitter / receiver. RedRatCom is a standard COM EXE developed in ATL in Visual Studio 2005 SP1.

Features
Copyright
History
Installation & Redistribution
Usage
Planned Enhancements
Contacting the Author

 

 

 

Features

 

 

 

Copyright

 

 

History

V1.0 (1 January 2003)

V1.1 (10 January 2003)

13 March 2003

V1.11 (24 January 2006)

 

 

 

Installation & Redistribution

The RedRat EXE is a standard self-registering COM EXE so registration / unregistration is handled using the "/RegServer" or "/UnRegServer" command line parameters.

When it comes time to distribute your applications you will need to ship "RedRat.exe" and the MFC runtime DLL "MFC42.dll" which it depends on (assuming you are using the ASCII Release build which is included prebuilt in the download). 

The RedRat EXE is a standard self-registering COM EXE so registration / un-registration is handled using the "/RegServer" or "/UnRegServer" command line parameters. If you are using a MSI based installer, then the recommended way to register the component is to avoid self registration and instead extract the registration details into the MSI tables.

The zip file comes with a ready to ship Unicode Release of RedRatCom in the "Unicode Release" directory which will work on Windows NT 4 or later.

When it comes time to distribute your applications you will need to ship "RedRat.exe" and the VC 2005 SP1 runtimes. If you are using the VS 2005 BootStrapper then you can use the standard vcredist_x86 or vcredist_x64 prerequisites. 

 

 

 

Usage

To start developing client applications using RedRatCom, all you need to do is pull in the RedRatCom library using whatever support your development environment provides for using COM objects. Please note that internally the code makes use of a COM mechanism called the "Global Interface Table" which is only available on Windows NT SP 3 or later or Windows 95 (or later) with DCOM version 1.1 or later installed.

To create a connection to a RedRat2/3 device you can use the RedRatConnections class which provides a standard COM collection of all the existing RedRatConnections currently created. Alternatively use the RedRatPort::CreateConnection method to create a new connection.

Once you have a RedRatConnection object you can call various the methods and properties provided by that class.

Included with the download is a very simple VB app which exercises all of the functionality of the library. You should be able to get an idea on how to use the library by examining the code in this sample.

 

 

 

Planned Enhancements

 

 

 

Contacting the Author

PJ Naughter
Email: pjna@naughter.com
Web: http://www.naughter.com
24 January 2006