Now I'm using EZTwain library to acquire image from scanner, using C++Builder. The code to acquire image is
hDib = TWAIN_AcquireNative(hwnd, PIXEL_TYPE);
where hwnd is MainForm->Handle /* my main window handle */
and PEXEL_TYPE is 0 /* any type */
Is it correct?? if yes, I try to get the bitmap information by
lpbi = (LPBITMAPINFOHEADER)hDib;
BUT lpbi has incorrect result. What's wrong with it?