EventView 
X10 Sample Application


PURPOSE
This sample application demonstrates how to receive X10 commands using COM 
events.  The sample consists of a dialog which displays a list of incoming 
commands.


SETUP
To run the sample, the X10 Interface DLL (x10net.dll) must be setup for the
system.  Since the interface is a self-registering ActiveX DLL, the only 
setup requirement is to run regsvr:

c:\windows\system\regsvr32 x10net.dll

Then to run the sample, run eventview.exe.


NOTES
Eventview consists of an ATL dialog CMessageDlg, and a event sink class, 
CNotify.  On initialization, the CMessageDlg creates the X10 Interface 
using CoCreateInstance.  It then advises an event sink with a CNotify class 
being the target.

Thereafter, as X10 events are received by the interface, the events are 
dispatched to the CNotify object, which in turn directs the CMessageDlg 
object to add a new event to the list box.

CMessageDlg could receive the events directly, without using a helper class.
In that case, it would need to provide an IDispatch interface and implementation
for _IX10InterfaceEvents.  The code was implemented with a separate helper
class to keep event reception separate from the dialog logic.  

Note that the declaration of CNotify's IDispatch interface uses the type library
from X10Net.dll, not EventView.exe.  This is done so that EventView.idl doesn't need
to define _IX10InterfaceEvents.

