Home › Forums › TWAIN Classic › Problem with setting CAP_AUTOFEED to true
- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by MarkM.
- AuthorPosts
Hello,
I have an application, written in C#, which does the following
TwCapability feederEnabled = new TwCapability(TwCap.FeederEnabled, 1);
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Get, feederEnabled);if (rc != TwRC.Success)
{
return;
}
else
{
DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, feederEnabled);
}TwCapability autoFeeder = new TwCapability(TwCap.AutoFeed, 1);
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, autoFeeder);if (rc != TwRC.Success)
{
return;
}
else
{}
According to the specification, after setting the AutoFeeder enabled capability to true, I should be able to set the AutoFeeder capability to true also. Alas, I cannot. Can somebody help me, please?
Best regards: Slav Petkov
The failure isn’t fully reported. The app should call DG_CONTROL/DAT_STATUS/MSG_GET to find out the TWCC_ condition code. If the value returned is TWCC_CAPUNSUPPORTED, then CAP_AUTOFEED isn’t supported, and the application shouldn’t worry about being unable to set it…
- AuthorPosts