Hi,
Any Idea why it don't recive TWAIN messages?
I have scanned only one image by calling "TransferImage()" on "CTwain::Acquire(int numImages)" method:
BOOL CTwain::Acquire(int numImages)
{
if(DSOpen() || OpenSource())
{
SetImageCount(numImages);
EnableSource(false);
TransferImage();
return(true);
/*
if(SetImageCount(numImages))
{
if(EnableSource(false))
{
return TRUE;
}
}
*/
}
return FALSE;
}
BOOL CTwain::Acquire(int numImages)
{
if(DSOpen() || OpenSource())
{
SetImageCount(numImages);
EnableSource(false);
TransferImage();
return(true);
/*
if(SetImageCount(numImages))
{
if(EnableSource(false))
{
return TRUE;
}
}
*/
}
return FALSE;
}
To copy to clipboard, switch view to plain text mode
If you call "EnableSource(true)", the UI of scanner will appear but don't response to the scan button, but response to preview button.
Thanks,
Bookmarks