473,385 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

VB.Net with using twain_32.dll

DLT
I am making progress with my vb.net app. However, I can't seem to find a
way to detect if the feeder is loaded. This is used by my scanner to
determine if there is a sheet in the feeder.

If I launch my application and attempt to acquire a scan, I would like the
program to loop until a sheet is loaded before it attempts to make the
actual scan. The best way to do this is to periodically test to see if
there is a sheet in the feeder... So, a few questions:

- Do I need to initialize the capability like the following example that
initialized transfer count (if so, how?):
Dim cap As TwCapability = New TwCapability(TwCap.XferCount, 1)
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, cap)

- Can anyone tell me which function (and how to call it) from the
twain_32.dll? I thought it might be DSstatus but I am not sure...

- Where exactly should the return code be found? but I can seem to get
the function to return any value. other than its Hex value (4099, H1003)
I should get a true or false (true if there is a sheet in the feeder).

Any help would be appreciated. Thanks - DLT

Nov 21 '05 #1
1 7285
Hi,

http://www.1aspstreet.com/vb/scripts...1551&lngWId=10
Ken
--------------------
"DLT" <DL*@discussions.microsoft.com> wrote in message
news:D2**********************************@microsof t.com...
I am making progress with my vb.net app. However, I can't seem to find a
way to detect if the feeder is loaded. This is used by my scanner to
determine if there is a sheet in the feeder.

If I launch my application and attempt to acquire a scan, I would like the
program to loop until a sheet is loaded before it attempts to make the
actual scan. The best way to do this is to periodically test to see if
there is a sheet in the feeder... So, a few questions:

- Do I need to initialize the capability like the following example that
initialized transfer count (if so, how?):
Dim cap As TwCapability = New TwCapability(TwCap.XferCount, 1)
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, cap)

- Can anyone tell me which function (and how to call it) from the
twain_32.dll? I thought it might be DSstatus but I am not sure...

- Where exactly should the return code be found? but I can seem to get
the function to return any value. other than its Hex value (4099, H1003)
I should get a true or false (true if there is a sheet in the feeder).

Any help would be appreciated. Thanks - DLT
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DLT | last post by:
I am making progress with my vb.net app. However, I can't seem to find a way to detect if the feeder is loaded. This is used by my scanner to determine if there is a sheet in the feeder. If I...
2
by: rawCoder | last post by:
Hi All, I have a *.cer file, a public key of some one and I want to encrypt some thing using this public key. Can someone point me to a sample code for Encrypting some file using...
1
by: Mike | last post by:
When trying to compile (using Visual Web Developer 2005 Express Beta; frameworkv2.0.50215 ) the source code below I get errors (listed below due to the use of ICallBackEventHandler. Ultimately I...
10
by: Christopher Benson-Manica | last post by:
Why can't I use a class destructor in a using declaration: using MyClass::~MyClass; ? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org ...
17
by: beliavsky | last post by:
Many of my C++ programs have the line using namespace std; but the "Accelerated C++" book of Koenig and Moo has many examples where the library names are included one at a time, for example ...
8
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
14
by: john.burton.email | last post by:
I've done some extensive searching and can't seem to find an answer to this - Is it correct to using "using" with templates, for example: using std::vector; Or do I need to specify the type...
5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.