How do I check if at least one TWAIN device is available
How do I check if at least one TWAIN device is available
- Subject: How do I check if at least one TWAIN device is available
- From: Ulf Dunkel <email@hidden>
- Date: Tue, 16 Sep 2008 15:44:51 +0200
- Organization: invers Software
In TWAINhandler.cpp (by Apple Inc.) and the relevant files, I get all
that nice stuff to access a TWAIN data source etc. in my app.
The following line in TWAINHandler::selectDS() e.g. opens the 'Select
Device' window provided by Mac OS X:
DSM_Entry(&mAppIdentity, NULL, DG_CONTROL, DAT_IDENTITY, MSG_USERSELECT,
(TW_MEMREF)&newDSIdentity);
But until I don't know how to check first, if there are any TWAIN
devices available at all, before I open this window, it even opens
without any device (causing silly results when the user clicks on
"Select" or the red closer button in the window title bar).
How do I check if at least one TWAIN device is available?
Regards,
UlfDunkel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden