Paxar Gold 6037EX Programmer's Manual page 106

Paxar printer programmer's manual
Table of Contents

Advertisement

Return Values
0
Successful.
-1
The scanner is already enabled.
-2
No scanner is installed or the application cannot communicate
with the scanner.
Example
#include <bios.h>
#include <stdio.h>
#include <conio.h>
#include "mmsultra.h"
void main(void)
{
short sStatus = 0;
unsigned uStatus = 0;
int iInput = 0;
static char cBuffer[200];
char far *pScan = NULL;
sStatus = scnOpenScannerShared();
if (sStatus != 0)
printf("Error opening scanner:\n%d\n", sStatus);
else
{
uStatus = _bios_serialcom(_COM_INIT, 0,
printf("Comm port open\n");
printf("return status: %d\nPress Enter...", uStatus);
_getch();
4-70
Programmer's Manual
// Command calls status
// bios_serialcom status
// Trigger input
// Application buffer
// Pointer from scan
// Enable shared scanner
// Open port
_COM_9600 | _COM_CHR8 |
_COM_EVENPARITY |_COM_STOP1);

Advertisement

Table of Contents
loading

This manual is also suitable for:

Monarch pathfinder ultra gold 6037ex

Table of Contents