Forums › TWAIN Classic › Simple TWAIN app question – reverse the process › Reply To: Simple TWAIN app question – reverse the process
December 21, 2009 at 7:38 pm
#25064
This fails;
TwCapability cap1 = new TwCapability(TwCap.CAP_FEEDERLOADED,1);
// query the scanner for the current value of the capability:
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Get, cap1);
if (rc != TwRC.Success)
{
// something's wrong
CloseSrc();
return;
}
Their orig code works tho, but it doesnt use teh CAP_FeederLoaded
TwCapability cap = new TwCapability(TwCap.XferCount, 1);
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, cap);
if (rc != TwRC.Success)
{
CloseSrc();
return;
}
Might just leave it as the orig code and have the users just click a button…