PosPrinterOcxMfcApp
==========================================================================================

This is a sample MCF test application for the Transact POSPrinter ocx.
It is developed using Visual Studio 2010.
This application needs POSPrinter ocx to be registered on the system prior to running
the test application.
The sample app illustrates the usage of common POSPrinter ocx control apis viz. 
- OpenPort()
- ClosePort()
- SendString()
- ReadString() 

et al.

For developers 
---------------
- Register the activex control - POSPrinter.ocx file on the development system using the command "regsvr32 <Path_to_ocx>\POSPrinter.ocx"
- Right click on the dialog/frame to which the ocx needs to be added.
- Choose "Insert Activex control" from the context menu.
- Choose POSPrinter control from the list of activex controls displayed. the control will get added to the GUI container.
- If the control is being added for the first time header and .cpp files that contain the function/properties definition for the ocx will also get generated and automatically added 
to the mfc project.
- If the files do not get created they can be manually generated by using "Class Wizard".
- To manually generate the header files choose Projects->Class Wizard menu item.
- Click on the "Add Class" dropdown box and choose "MFC class from activex control".
- Follow the steps in the class wizard to choose the active x control from the list of controls displayed and generate the necessary POSPrinter control classes.
- Once the activex control is added and the related header and cpp files are generated, user can add a variable for the activex control using "Add variable" context menu available on right click on the control.
- The newly added activex variable can be used to invoke the functions/properties for the activex control.

===========================================================================================

PosPrinterOcxDotNetTest
==========================================================================================

This is a sample C# Dot Net test application for the Transact POSPrinter ocx.
It is developed using Visual Studio 2010.
This application needs POSPrinter ocx to be registered on the system prior to running
the test application.
The sample app illustrates the usage of common POSPrinter ocx control apis viz. 
- OpenPort()
- ClosePort()
- SendString()
- SendDataArr()
- ReadDataArr() 

et al.

For developers 
---------------
- Register the activex control - POSPrinter.ocx file on the development system using the command "regsvr32 <Path_to_ocx>\POSPrinter.ocx"
- Open the toolbox window and right click for context menu.
- Click on "Choose Items" from the context menu.
- In the choose toolbox items window that shows up choose POSPrinter control by clicking on the Browse button and navigating to the POSPrinter ocx file.- The control will get added to the toolbox window.
Add the control to the form just as any other control using drag and drop.
- View the properties of the control in the Properties Window, after the control is added to a form. This window also contains the member variable name for the control.
- The control can be assigned a different variable name or the default assigned name can be used to the reference the control and invoke its properties and methods.

===========================================================================================

