Paxar Gold 6037EX User Manual Page 97

  • Download
  • Add to my manuals
  • Print
  • Page
    / 230
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 96
Function Reference 4-61
Example
#include <conio.h>
#include <stdio.h>
#include "mmsultra.h"
void main(void)
{
char *pStatus2 = NULL; // Pointer to cBuffer
char cBuffer[100]; // Application buffer
short sStatus1 = 0; // Command calls status
int iInput = 0; // Trigger input
sStatus1 = scnOpenScanner(); // Enable scanner
if (sStatus1 == -2)
printf("Scanner open error-- %d", sStatus1);
else
{ // Perform scan
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); // Beep for success
// Display result
printf("Scan data:\n %s\n", cBuffer);
}
}
}
}
sStatus1 = scnCloseScanner(); // Disable scanner
}
Page view 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 229 230

Comments to this Manuals

No comments