Home › Forums › TWAIN Classic › Error scanning image
- This topic has 2 replies, 2 voices, and was last updated 16 years, 11 months ago by arubia.
- AuthorPosts
Hi all
I have a sourcecode in C++Builder6 to take a image from a scanner, I’m configuring the capabilities with (ICAP_PIXELTYPE,TWPT_RGB->TWRC_SUCCESS) after initialice the native transmision… and finaly I send “DsmEntry(&appId, &sourceId, DG_IMAGE,DAT_IMAGENATIVEXFER, MSG_GET, &hDib);” and return TWRC_SUCCESS, all OK the image it’s perfect.
But when I change to (ICAP_PIXELTYPE, TWPT_BW or TWPT_GRAY) respond TWRC_SUCCESS too and I do the same of RGB:
– initialice the native transmision
– “DsmEntry(&appId, &sourceId, DG_IMAGE, DAT_IMAGENATIVEXFER,MSG_GET, &hDib);” and now return TWRC_CANCELI don’t understand it!!! I only change the ICAP_PIXELTYPE, I think that the error can be in the HBITMAP define in borlandC++ or not… anyone have some idea.
sorry for my bad english and thanks for help me
Check that the source supports TWPT_BW / TWPT_GRAY.
what is the condition code?.
The scanner supports TWPT_BW / TWPT_GRAY. I think that the error are in the compiler, I’m going to re-install the Borlandc++ and try again.
- AuthorPosts