Forum Replies Created
- AuthorPosts
Yes, i’m talking about location. Sorry for my approximative english 😳
Actually, the specs allows me to put any files only in the folder in witch the all application will be installed, typically “C:/Program Files/TheApp”.
Ok, thank you.
@gabe wrote:
why would want to do this? (just curious)
Because of stupid client specifications. 😥
(specifications are stupid, not the client… )well, sometimes i wonder…Ok, thank you for your advices, I’m going to take a look on the shell provided by dosadi.
Anyway, the driver I’m making won’t be used by Ms Word. In fact, it will be used only by one application… but well… for the moment, i don’t know anything about this application :/
Concerning the capabilities that must support my driver, I’ve seen that in the twain documentation. But, well, as my driver will be used by only one application, is it indispensable to implement all these capabilities?
Thank you once more for your advices. The delay i have obtained to make this driver is short (damned commercial strategy) and all informations are welcome 🙂
And ho, maybe you noticed that my code is c++ (not c code). All my driver is made in c++, respecting usual patterns (const conformity, RAII resources management, addressing optimization, etc.). If my code can interest somebody, I’ll be glad to propose you a simplified and license free version.
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”.
Re,
I progressed in my understanding of the foncitonnement of Twain, and I made some changes in my program.
My supported caps looks like this from now:
static TW_UINT16 gSupportedCaps [ SUPPORTEDCAPS] = {CAP_SUPPORTEDCAPS, ICAP_XFERMECH, CAP_XFERCOUNT, CAP_UICONTROLLABLE};I succeed in treating (correctly I hope) the following triplets:
-> DG_CONTROL / DAT_IDENT ITY / MSG_GET
-> DG_CONTROL / DAT_IDENT ITY / MSG_OPENDS
-> DG_CONTROL / DAT_CAPABILITY / MSG_SETThen, I receive Event, and I generate the event MSG_XFERREADY
But now, I wait for the triplet:
DG_IMAGE / DAT_IMAGEMEMXFER / MSG_GET
but I do not receive it.Have you an idea of what I forgot?
- AuthorPosts