Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get TWAINDSM_LOG to work? #24

Open
wleestrong opened this issue Nov 22, 2022 · 0 comments
Open

How to get TWAINDSM_LOG to work? #24

wleestrong opened this issue Nov 22, 2022 · 0 comments

Comments

@wleestrong
Copy link

Trying to debug DS and APP, by logging their message data and state changes...

File src/readme.doc describes:

3.1.6 log.cpp
Logging is activated by setting the TWAINDSM_LOG environment variable to the full path of the log file to be used.

I cannot get this to work!?! Further down there is an explanation of integration, with undefined symbols SF_DSM2_DS and SF_DSM2_DSM Where are these defined?

3.3.3 twaindsm32.dll

TWAIN Drivers that want to use twaindsm32.dll need to add the flag SF_DSM2_DS to the TW_IDENTITY SupportedGroups member. This is to trigger the application that they can use twaindsm32.dll. When a TWAIN Driver is opened it can check the TW_IDENITY SupportedGroups flag. If the DSM has set SF_DSM2_DSM the TWAIN Driver knows that it has been opened by twaindsm32.dll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant