Home › Forums › TWAIN Classic › How to get my data source displayed?
- This topic has 5 replies, 3 voices, and was last updated 16 years ago by neolq.
- AuthorPosts
Hi, I’m a newbie to TWAIN.
I’m reading Twack_32’s source code now.
I feel like that if I put my own .ds file under the path “X:WINDOWStwain_32”, when I open Twack_32.exe, “File” -> “Select source”, I’ll see my data source.
But the result is not like that, I’m rather confused. I must have missed something since I can see “TWAIN_32 Sample Source” everytime.I think it has one of the following problems:
1) It has run-time link issues (it requires a DLL that is not present) so the DSM cannot load it.
2) It’s not exporting the DS_Entry function. If it has a DS_Entry function, the name may be mangled by the linker.
3) it’s not properly handling DG_CONTROL/DAT_IDENTITY/MSG_GET.If you have Microsoft’s Dependancy Walker (depends.exe, included with Developer Studio) you can check items 1 & 2. For item 3, set a break point in your DS_Entry function and step the code to see what’s going on.
What tools are you using to build your DS?
–or x:windowstwain_32 isn’t what you think it is. dpenny is much more likely to be right but there is also the case for terminal servers/citrix machines often load *.ds from the user’s profilewindowstwain_32
Easy to test, if you drop the sample source from the toolkit into your x:windowstwain_32 does it show up in twack_32? and when you remove the .ds (after restarting the app) does the sample source disappear.
.
I assumed neolq’s DS is installed where the sample DS is installed and that
the “X” drive letter is a placeholder for the boot drive.By the way, item #3 in my previous post is supposed to read “it’s not properly handling DG_CONTROL / D A T _ I D E N T I T Y / MSG_GET”.
When the spaces are taken out, “D A T _ I D E N T I T Y” changes to “no”. Weird, no?
–so you’re saying by writing i d e n t i t y (without the spaces) you weren’t intending to slip some clever bit of s p a m (again without spaces) past the ever so vigilant s p a m filters? better watch out or Hilary will delete you account 😉
and yeah I assumed that x was boot too, but I’m slow. I’ve made that mistake when we were doing development on a terminal server. took me hours to figure out – yours were much more likely.
.
“X” represents my boot “parti tion”, and thank you~
I’ll try to figure out the problem.- AuthorPosts