Home › Forums › TWAIN Classic › NODS – No Datasources found
- This topic has 1 reply, 2 voices, and was last updated 9 years, 3 months ago by MarkM.
- AuthorPosts
Hello,
I have the problem that the program can´t find the datasources that are existing and located on the right place “twain_32/subdir/”. 🙁
I instantiate an Twain object “m_Twain”.
After this i do:
sts = m_Twain.DatParent(TWAIN.DG.CONTROL, TWAIN.MSG.OPENDSM, ref hwnd);
sts = m_Twain.DatIdentity(TWAIN.DG.CONTROL, TWAIN.MSG.GETFIRST, ref default_driver);
After this it returns an NODS(no datasource).
I can´t get the first and the next neither.sts = m_Twain.DatIdentity(TWAIN.DG.CONTROL, TWAIN.MSG.GETNEXT, ref default_driver);
I know the data sources are in the right directory and accessible, because i can access them with other twaintools, like TWAINCSTools – I can´t figure out why it´s working in the tool and alone it´s dont. 😥
Please help me to find the problem and to get rid of it. 🙂
Best regards,
DonkeyKong
Make sure that your project is set to create x86 binaries. C# usually outputs AnyCPU by default, which will result in a 64-bit binary image on a 64-bit OS (and a 32-bit on a 32-bit OS). Most TWAIN drivers are still 32-bit…
- AuthorPosts