Home › Forums › TWAIN Classic › Clearing captured still images › Reply To: Clearing captured still images
I believe the Windows dialog boxes referred to are those used to select the source and it’s settings and the box provided by the device. In his earlier example, he created Windows dialog boxes within his dll instead of using the one provided by the twain_32.dll. I’m using Jeff’s code so I’m pretty sure the generic acquire dialog is to be shown. Here’s a clip from the acquire method which shows the dialog:
...
#include "twain.h" // Standard TWAIN header.
...
// Prepare to enable the currently open data source. Make sure to NOT show
// the data source's own user interface (dialog box).
TW_USERINTERFACE ui;
ui.ShowUI = FALSE;
ui.ModalUI = FALSE;
ui.hParent = 0;
// Enable the currently open data source.
g_rc = (*g_pDSM_Entry) (&g_AppID,
&g_SrcID,
DG_CONTROL,
DAT_USERINTERFACE,
MSG_ENABLEDS,
&ui);
// If default data source could not be enabled, throw exception. Because
// the exception is not actually thrown until execution returns to Java, we
// first exit current block to close data source, close data source
// manager and destroy the previously-created window.
if (rc != TWRC_SUCCESS)
{
throwJTE (env, "Unable to enable default data source (_acquire)");
EXIT_CURRENT_BLOCK
}
This displays a generic dialog box and not the fancy one from Logitech (the camera’s brand I’m using) I get when I use the web cam alone. Are you saying that this generic dialog is also provided by the manufacturer and not twain_32.dll?
Did you write your own acquisition dialog?