I have a sample TWAIN application that using JNI and call C++ lib in MAC.
My scanner is Cannon LIDE 25.I can do select source fine..but when Im going to acquire,the scanner window come and get disable..What can be the problem to this ?
this is my code to enable the Data Source
err = DSM_Entry(&mAppIdentity,NULL, DG_CONTROL, DAT_PARENT, MSG_OPENDSM, NULL);
err = DSM_Entry(&mAppIdentity,NULL, DG_CONTROL, DAT_IDENTITY, MSG_OPENDS,(TW_MEMREF)&mDSIdentity);
err = DSM_Entry(&mAppIdentity,&mDSIdentity,DG_CONTROL, DAT_USERINTERFACE, MSG_ENABLEDS,(TW_MEMREF)&userInter);
Can anyone give me a solution to this ?