Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I used TwainLib.dll library from http://www.youtube.com/watch?v=eA-MeWKiPAw[^]Here.

Dim FileNames = TwainLibScanImages(, , My.Setting.Scan)
How can I know the type of FileNames? But when I hover over it and it state it is " Dim FileNames As System.Collections.Generic.List(Of String)".

It's a weird type for me. How can I store the stuff (It's file location path) it returned to a String Type. It's always produce an error when i try to store the value it returned to a String. Plz help!
Posted
Comments
Sergey Alexandrovich Kryukov 11-Dec-12 0:52am    
What do you mean "what is"? As you say, it tells you what is it, so what's your question about it? This is a generic type, not just type.

And where is the link to the library? Video is not the library (and trying to learn on video does not mean studying).
--SA
Valentine1993 11-Dec-12 1:13am    
The link to library is http://mka-soft.com/downloads/Accessing%20Twain%203.zip[^]

I know that, videossss are not library. Doing stuff like scanning image to VB is a hard to find stuff. So what is a generic type?

This is a generic type, and one of those which no one can afford to be unaware of.

Before going to TWAIN and other advanced issues, I would advise you to learn the language and basics of .NET. As you don't even know generics, you cannot move much further. You need to learn all the language, not just simple fragments. Read this:
http://msdn.microsoft.com/en-us/library/aa479859.aspx[^].

—SA
 
Share this answer
 
Comments
Abhinav S 11-Dec-12 0:59am    
My 5.
Sergey Alexandrovich Kryukov 11-Dec-12 1:07am    
Thank you, Abhinav.
--SA
Valentine1993 11-Dec-12 1:18am    
Thanks. I just figured out the way to get the location path.
Sergey Alexandrovich Kryukov 11-Dec-12 11:29am    
Very good.
Wish you the best of luck,
--SA
Valentine1993 11-Dec-12 19:27pm    
Hi. Thanks for helping me.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Dec-12 1:07am    
Useful links, a 5.
--SA
Abhinav S 11-Dec-12 1:54am    
Thank you SA.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900