Paxar Gold 6037EX Programmer's Manual page 97

Paxar printer programmer's manual
Table of Contents

Advertisement

Example
#include <conio.h>
#include <stdio.h>
#include "mmsultra.h"
void main(void)
{
char *pStatus2 = NULL;
char cBuffer[100];
short sStatus1 = 0;
int iInput = 0;
sStatus1 = scnOpenScanner();
if (sStatus1 == -2)
printf("Scanner open error-- %d", sStatus1);
else
{
printf("Press trigger to\nscan...\n");
iInput = _getch();
if (iInput == 0)
{
iInput = _getch();
if (iInput == 0x85)
{
pStatus2 = scnGets(cBuffer);
if (pStatus2 == NULL)
printf("Scanner buffer read error\n");
else
{
spkBeep(1, 1000);
printf("Scan data:\n
}
}
}
}
sStatus1 = scnCloseScanner();
}
// Pointer to cBuffer
// Application buffer
// Command calls status
// Trigger input
// Enable scanner
// Perform scan
// Beep for success
// Display result
%s\n", cBuffer);
// Disable scanner
Function Reference 4-61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Monarch pathfinder ultra gold 6037ex

Table of Contents