Example: IN_GetProductIDName

 

#define MAX_SIZE 50

 

USHORT nMaxCount=30; // retrieve a maximum of 30 product IDs

INT iProductID; // product ID Imagenation is currently set to

UINT iProductCount;

INT iProductIDs[30];

char szProductName[MAX_SIZE];

 

/* Get the current product configuration */

if ( ( nError = IN_GetProduct( nMaxCount, &iProductID, &iProductCount, iProductIDs ) ) != IN_SUCCESS )

 {

  ErrorHandler( nError, "Error message:" );

 }

 

/* Get the name of the current product */

if ( ( nError = IN_GetProductIDName( (USHORT)iProductID, MAX_SIZE, szProductName ) ) != IN_SUCCESS )

 {

  ErrorHandler( nError, "Error message:" );

 }

image\tip_shg.gif Handling errors when using multiple functions