Paxar Gold 6037EX User Manual Page 106

  • Download
  • Add to my manuals
  • Print
  • Page
    / 230
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 105
4-70 Programmer’s Manual
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; // Command calls status
unsigned uStatus = 0; // bios_serialcom status
int iInput = 0; // Trigger input
static char cBuffer[200]; // Application buffer
char far *pScan = NULL; // Pointer from scan
sStatus = scnOpenScannerShared(); // Enable shared scanner
if (sStatus != 0)
printf("Error opening scanner:\n%d\n", sStatus);
else
{ // Open port
uStatus = _bios_serialcom(_COM_INIT, 0,
_COM_9600 | _COM_CHR8 |
_COM_EVENPARITY |_COM_STOP1);
printf("Comm port open\n");
printf("return status: %d\nPress Enter...", uStatus);
_getch();
Page view 105
1 2 ... 101 102 103 104 105 106 107 108 109 110 111 ... 229 230

Comments to this Manuals

No comments