Originally posted by: DDuck Tigimi
Using this code, Dream comes true..if it's available..
ReplyOriginally posted by: Alex
I want create a ocx twain
with your code it 's possible ????
Originally posted by: apple
When I want to select one image,but preview window don't change.And it don't do anything when I press ctrl and click the mouse too.
How can I do it?
Thanks
Originally posted by: Majid Toussi
How can I set frame dimension of an image to be acquired via application before image acquisition?
Originally posted by: Choi Koon Yin
Thank you.
ReplyOriginally posted by: kanghyomin
I Would Ask a question.
To begin with
Thank,s to your Source File I,m very Helpful to me.
bUT I Occurred a Problem that Combo box.
The Combo Box Doesn't Display The List Item.
So I didn't Choose The Item.
I Think The Version's Problem.
please Help my Question.
Thank You.
Originally posted by: Frank Lautenbach
Hello,
I have a question: How it is possible to set image acquisition parameters (ROI, dpi, gray/color, etc.) from code without popping up the configuration dialog from the scanner manufacturer?
Thanks in advance for your help.
Bye,
Frank
Originally posted by: Janusz Sikocinski
Current specification and developer kit for TWAIN is available on http://www.twain.org
ReplyOriginally posted by: Doug Knudson
ret_val = (*m_pDSMProc)(pOrigin,pDest,DG,DAT,MSG,pData);
When running your sample app from within DevStudio 6 SP4 on Windows 2000 I get a First Chance Exception (only when sending a particular message to the twain dll (MSG_ENABLDS)when running in Debug build. Everything seems OK with release build... Any ideas would be greatly appreciated...
BOOL CTwain::CallTwainProc(pTW_IDENTITY pOrigin,pTW_IDENTITY pDest,
TW_UINT32 DG,TW_UINT16 DAT,TW_UINT16 MSG,
TW_MEMREF pData)
{
if(IsValidDriver())
{
USHORT ret_val;
//
// The following line causes exception (in debug build) below *ONLY* when
// MSG = 1282 (0x0502) MSG_ENABLEDS during the Acquire process. In a Release
// build, everything acutally works. Any ideas?
//
m_returnCode = ret_val;
if(ret_val != TWRC_SUCCESS)
{
(*m_pDSMProc)(pOrigin,pDest,DG_CONTROL,DAT_STATUS,MSG_GET,&m_Status);
}
return (ret_val == TWRC_SUCCESS);
}
else
{
m_returnCode = TWRC_FAILURE;
return FALSE;
}
}
*** First Chance Exception in TwainTest.exe (NTDLL.DLL) 0xC0000008 : Invalid Handle
Originally posted by: Yoko
Thanks to ing.davide.pizzolato@libero.it:
Make the following change to get better color support:
void CDIB::StretchBlt(HDC hDest,int nXDest,int nYDest,int nDWidth,int nDHeight,int xSrc,int ySrc,int nSWidth,int nSHeight)
{
int err;
SetStretchBltMode(hDest,COLORONCOLOR); // THIS LINE ADDED !!!!
err = StretchDIBits(hDest,nXDest,nYDest,nDWidth,nDHeight,xSrc,ySrc,nSWidth,nSHeight,m_pBits,(CONST BITMAPINFO * )&m_pInfo->bmiHeader,DIB_RGB_COLORS,SRCCOPY);
}
Markus