Home › Forums › TWAIN Classic › ADF Automatic Document Feeder
- This topic has 0 replies, 1 voice, and was last updated 17 years, 1 month ago by Deficiency.
Viewing 1 post (of 1 total)
- AuthorPosts
Hello!
I have a Question: Can some look at these code lines and say me what i have done wrong?
//Document Feeder
TW_CAPABILITY twCapability;
TW_INT16 rc;
TW_UINT32 NumberOfItems;
twCapability.Cap = CAP_FEEDERENABLED; //Insert Capability of Interest
twCapability.ConType = TWON_ONEVALUE;
pTW_ONEVALUE pvalOneValue;
TW_BOOL valueBool = true;;
twCapability.hContainer = GlobalAlloc(GHND, sizeof(TW_ONEVALUE));
pvalOneValue = (pTW_ONEVALUE)GlobalLock(twCapability.hContainer);
pvalOneValue->ItemType = TWTY_BOOL;
pvalOneValue->Item = valueBool;
GlobalUnlock(twCapability.hContainer);
//
MSG_SET
rc = (*g_pDSM_Entry)(&g_AppID,
&g_SrcID,
DG_CONTROL,
DAT_CAPABILITY,
MSG_SET,
(TW_MEMREF)&twCapability);
GlobalFree(twCapability.hContainer);
switch (rc)
{
case TWRC_SUCCESS:
//Capability's Current or Available value was set as specified
case TWRC_CHECKSTATUS:
//The Source matched the specified value(s) as closely as possible
//Do a MSG_GET to determine the settings made
case TWRC_FAILURE:
//Check the Condition Code for more information
default:
break;
}
I have a network scanner and i connect via Netzwork Twain on it. If i do not include this lines of code i can display the Picture and they i can save it as BMP. The code for the Display and save are both with Twain.
But when i include the lines above it doesn´t work anymore!
And i realy don´t know what i do wrong?By the way, the code is in the function openDS()
thx a lot
- AuthorPosts
Viewing 1 post (of 1 total)