![background image](http://html1.mh-extra.com/html/paxar/gold-6037ex/gold-6037ex_programmers-manual_1513322106.webp)
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();
Summary of Contents for Gold 6037EX
Page 1: ... ROG TC6037EXPM Rev AA 8 03 Printed in the U S A 2003 Paxar Americas Inc All rights reserved ...
Page 2: ... Trademarks 0 1 2 0 0 3 4 5 6 7 78 ...
Page 10: ...viii Table of Contents ...
Page 30: ...2 16 Programmer s Manual ...
Page 36: ...3 6 Programmer s Manual ...
Page 154: ...4 118 Programmer s Manual ...
Page 228: ...14 Index ...
Page 229: ......
Page 230: ......