Home › Forums › TWAIN Classic › how to develop a twain driver without UI ? › Reply To: how to develop a twain driver without UI ?
June 1, 2007 at 8:03 am #23831
Ok, but the driver I’m making don’t need UI. It’s a driver for a digital camera, and the purpose is medical imagery. So i have to make sure that user cannot modify parameters of the camera.
I made something. I wonder if it’s dangerous. In my PS_Entry, when I receive an event, and my camera is ready to shoot, i set the message’s pData struct to MSG_XFERREADY:
if ((!m_appIdent_ity.Id) || (m_appIdent_ity.Id == twMsg.pSrc->Id))
{
if ( twMsg.MSG == MSG_PROCESSEVENT )
{
twRc = TWRC_DSEVENT;
pTW_EVENT pEvent = static_cast(twMsg.pData);
if ( pDsManager->IsReadyForXFerr() ) //pDsManager is an object that manage the driver (states, status, errors, ...)
{
pEvent->TWMessage = MSG_XFERREADY;
}
}
}
What do you think about this?
ps: what the hell is happening on this phpbb forum with the word “ident ity” ? I’m forced to insert a white space else the word is replaced by “no”.