Forum Replies Created
- AuthorPosts
any help?
hi,
i am developing an dll twain driver for twain scanner. I have got to do the state 1: load source manager
state 2: source manager loaded
state 3: soource manager open
state 4: select source
state 5: source openi have the same problem, in the state 5-6 a can´t intercept the MSG_XFERREADY message in the loop message.
I havn´t one WINMAIN loop, but i have one DLLMAIN and an DialogProc. i have got updated the loop message in the dialog proc in this way:
BOOL CALLBACK ScannerProc ( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
indice=0;
TW_EVENT twEvent;
TW_INT16 rc;
rc = TWRC_NOTDSEVENT;
switch (uMsg)
{
if ( gDSOpen )
{
twEvent.pEvent = (TW_MEMREF)&uMsg;
twEvent.TWMessage = MSG_NULL;rc = (*pDSM_Entry)(>wAppID,&gDSIdentity,DG_CONTROL,DAT_EVENT,MSG_PROCESSEVENT,(TW_MEMREF)&twEvent);
if (rc != TWRC_NOTDSEVENT)
trace.Log(“He pasado %s:”, twEvent.TWMessage);switch (twEvent.TWMessage)
{
case MSG_XFERREADY:
trace.Log(“He pasado por sg_xferready”);
break;
case MSG_CLOSEDSREQ:
trace.Log(“He pasado por MSG_CLOSEDSREQ”);
break;
case MSG_CLOSEDSOK:
trace.Log(“He pasado por MSG_CLOSEDSOK”);
break;
case MSG_NULL:
// no message returned from the source
break;
}
}case WM_INITDIALOG:
return TRUE;case WM_COMMAND:
case IDOK:
case WM_CLOSE:
//}//fin de if rc == NODSEVENT
} // Fin switch de Msg
return FALSE;
}but never got MSG_XFERREADY.
Please somebody can help me?
I am working in w7 y load the twain_32.dll dinamically, i am reading in this post that was an problem with w7???
thank you very much.
it is already working!!!
- AuthorPosts