Forum Replies Created
- AuthorPosts
Thank you so much for your detail explanation. I will work on this and will let you know if I have a problem.
Thank You.I am wriing my code in C++ and my application is a DLL. All the twain calls in this dll are from within the DLL. I call this DLL from another application. Here are some of my functions.
bool TwainProcedure(pTW_IDENTITY pOrigin,pTW_IDENTITY pDest,TW_UINT32 DG,TW_UINT16 DAT,TW_UINT16 MSG,TW_MEMREF pData)
{ //Use: Entry point into Twain. For a complete description of thisif(IsValidDriver())
{
unsigned short ret_val;
ret_val = (*m_pDSMProc)(pOrigin,pDest,DG,DAT,MSG,pData);
m_returnCode = ret_val;
if(ret_val != TWRC_SUCCESS)
{
(*m_pDSMProc)(pOrigin,pDest,DG_CONTROL,DAT_STATUS,MSG_GET,&m_Status);
}
return (ret_val == TWRC_SUCCESS);
}
else
{
m_returnCode = TWRC_FAILURE;
return FALSE;
}
}
**********************bool SelectSource()
{ //Use:Called to display a dialog box to select the Twain source to use.
memset(&m_Source,0,sizeof(m_Source));
if(!SourceSelected())
{
SelectDefaultSource();
}
if(TwainProcedure(&m_AppId,NULL,DG_CONTROL,DAT_IDENTITY,MSG_USERSELECT,&m_Source))
{
m_bSourceSelected = TRUE;
}
return m_bSourceSelected;
}************************************************************
void CloseDS()
{ //Use: Closes the Data Source
if(DSOpen())
{
DisableSource();
TwainProcedure(&m_AppId,NULL,DG_CONTROL,DAT_IDENTITY,MSG_CLOSEDS,(TW_MEMREF)&m_Source);
m_bDSOpen = FALSE;
}
}*******************************************************
void CloseDSM()
{ //Use: Closes the Data Source Manager
if(DSMOpen())
{
CloseDS();
TwainProcedure(&m_AppId,NULL,DG_CONTROL,DAT_PARENT,MSG_CLOSEDSM,(TW_MEMREF)&m_hMessageWnd);
m_bDSMOpen = FALSE;
}
}I am sorry if i was not clear in defining my problem.
What is a message loop and how do i fix it?When I use PaintShop Pro or other graphing tools, i am able to change the cap settings like DPI etc. but not when i launch the software from my application. is there a setting I have to change so that EPSON software will allow me to change the parameters?
- AuthorPosts