TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Reply To: Clearing captured still images

Forums › TWAIN Classic › Clearing captured still images › Reply To: Clearing captured still images

May 2, 2007 at 2:37 pm #23648
gbenes
Participant
  • Topics - 1
  • Replies - 6
  • Total Posts - 7

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?

Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in