
GENERAL

Thanks for purchasing iWedgeIt*. Attached to this email are the two .prc
files for the iWedgeIt product as well as the license agreement. Simply
hotsync these files onto your device and then reset. It initially starts in
demo mode. You must go to preferences and select the scan wedge menu item.
From here select the register button. This will display a hot sync name
and a registration code. You can than email them to us and we will send you an
unlock code for your device. Without the registration code it will still 
work but it stops scanning after 20 scans.

The following information and Sample Program are Optional. The Scan Wedge can be enabled or disabled using the supplied Preference application.
The scan wedge must not be enabled while applications that support scanning directly are being used.  This information can be used to allow these applications to disable the Scanner Wedge so that they may use the scanner.
This information can be integrated into some high level languages that do not provide an interface to the scanner.  These calls will allow them to have control over the scanner operation. 
 

THE SAMPLE CODE

This sample code shows how to enable or disable the Scan Wedge programmatically.  It can also be used as a quick way to enable or disable the wedge.
The sample can also be use to turn the Wedge on or off by calling it with the proper startup code. 0x9002 to enable the Wedge and 0x9000 to close the wedge


ENABLE/DISABLE CODE

Use this code to disable the Scan Wedge:

First send the wedgeCloseSMEvent to tell the ScanWedge to close the ScanMgr

	// Make sure the Wedge has the ScanLib closed.	
	MemSet( &myEvent, sizeof(myEvent), 0 );
	myEvent.eType = (eventsEnum) wedgeCloseSMEvent;
	EvtAddEventToQueue ((EventPtr)&myEvent);


Wait for the wedgeSMCLosedEvent to know that the wedge has closed the ScanMgr

	// Get the next available event.
	EvtGetEvent(&event, evtWaitForever);

	// If the Wedge is telling us it has closed the ScanMgr lib then we 
	// must be trying to start our app.  Open the ScanMgr, and go to 
	// our MainForm.
	if ( event.eType == wedgeSMClosedEvent) {
		error = ScanOpenDecoder();	// open the scan manager library	
		if (!error)
			bOpenDecoderOK = true; // set global variable that all is well
		else 
			FrmAlert( OpenFailedAlert );
		// Initialize and draw the main form.
		FrmGotoForm( MainForm );
		continue;
	}
					

Use This Code to enable the Scan Wedge:

To tell the scan wedge to open the ScanMgr send the wedgeOpenSMEvent

	MemSet( &myEvent, sizeof(myEvent), 0 );
	myEvent.eType = (eventsEnum) wedgeOpenSMEvent;
	EvtAddEventToQueue ((EventPtr)&myEvent);
