Home › Forums › TWAIN Classic › Duplex scanning both side › Reply To: Duplex scanning both side
February 25, 2008 at 8:29 am #24039
I’ve changed DSixfer.
Before:
private static extern eTwRC DSixfer( [In, Out] cTwIdentity origin, [In] cTwIdentity dest, eTwDG dg, eTwDAT dat, eTwMSG msg, ref IntPtr hbitmap );
After
private static extern eTwCC DSixfer( [In, Out] cTwIdentity origin, [In] cTwIdentity dest, eTwDG dg, eTwDAT dat, eTwMSG msg, ref IntPtr hbitmap );
eTwRC -> eTwCC
And now first:
cc = DSixfer(m_appID, m_srcDS, eTwDG.Image, eTwDAT.ImageNativeXfer, eTwMSG.Get, ref hbitmap);
cc = eTwCC.BadCap
Second:
cc = DSixfer(m_appID, m_srcDS, eTwDG.Image, eTwDAT.ImageNativeXfer, eTwMSG.Get, ref hbitmap2);
cc = eTwRC.Bummer