Rockwell-automation 1747-PCIS API Software - Open Controller Manual de usuario Pagina 75

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 174
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 74
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-15
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library.
Example:
HANDLE Handle;
char *msg;
int rc;
if (SUCCESS != (rc = OC_OpenScanner(&Handle)))
{
/* Open failed - display error message */
OCErrorMsg(rc, &msg);
printf(“Error: %s\n”, msg);
}
OC_ExtendedErrorMsg
OC_ExtendedErrorMsg returns a descriptive text message associated
with an extended error.
Syntax:
int OC_ExtendedErrorMsg(HANDLE handle, OCEXTERR
*exterr, char **msg);
Parameters:
Name: Description:
SUCCESS errcode
was valid. msg points to corresponding error description.
ERR_OCPARAM errcode was invalid. msg points to unknown error code string.
Parameter: Description:
handle Must be a valid handle returned from OC_OpenScanner
exterr Points to an extended error
msg Points to a static buffer that contains a null-terminated message
string for the associated extended error
Vista de pagina 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 173 174

Comentarios a estos manuales

Sin comentarios