ISISGetASCIITag example for C++ Builder
char * pszVal= NULL;
AnsiString msg;
LEADISIS1->ISISLoadDriver();
//get the default value
LEADISIS1->ISISGetASCIITag(TAG_PAGESIZE, &pszVal, TRUE);
msg = "Default: ";
ShowMessage ( msg + pszVal);
if ( pszVal )
{
GlobalFree ( pszVal );
pszVal= NULL;
}
//get the current value
LEADISIS1->ISISGetASCIITag(TAG_PAGESIZE, &pszVal, FALSE);
msg = "Current: ";
ShowMessage ( msg + pszVal);
if ( pszVal )
{
GlobalFree ( pszVal );
pszVal= NULL;
}
//set a new value
//NOTE, this would have to be a valid choice for the scanner
LEADISIS1->ISISSetASCIITag(TAG_PAGESIZE, "Scanner's Maximum");
//get the default value
LEADISIS1->ISISGetASCIITag(TAG_PAGESIZE, &pszVal, FALSE);
msg = "Current: ";
ShowMessage ( msg + pszVal);
if ( pszVal )
{
GlobalFree ( pszVal );
pszVal= NULL;
}
LEADISIS1->ISISUnloadDriver();