Results 1 to 7 of 7

Thread: Scanners and API

  1. #1

    Thread Starter
    Addicted Member Xenonic_Rob's Avatar
    Join Date
    Jun 2000
    Location
    England, UK
    Posts
    213

    Thumbs up

    Help! Help! Help!
    Please could someone help me out - can I use the Windows API to control a scanner. I'm writing a program thats a bit like OCR, except it converts sheet music into MIDI files. Clever huh?!
    But I haven't started it yet. Any suggestions?

    Rob Wright
    E-mail: [email protected]
    Website: http://www.xenonic.com
    The First Member of Honeybee's Club
    Favourite words: Zugzwang and Empiric

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    If you now how to use the scanner with api, great! otherwise try a TWAIN ActiveX control. One is avalible from Oylimpus. Post your api code if you have it, please!!
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3

    Thread Starter
    Addicted Member Xenonic_Rob's Avatar
    Join Date
    Jun 2000
    Location
    England, UK
    Posts
    213
    I dont have the API code. That's why I'm asking, stupid!
    Anyone out there, could you give me the URL to an activex control or code?

    Rob Wright
    E-mail: [email protected]
    Website: http://www.xenonic.com
    The First Member of Honeybee's Club
    Favourite words: Zugzwang and Empiric

  4. #4

    Thread Starter
    Addicted Member Xenonic_Rob's Avatar
    Join Date
    Jun 2000
    Location
    England, UK
    Posts
    213
    Anyone?!

    Rob Wright
    E-mail: [email protected]
    Website: http://www.xenonic.com
    The First Member of Honeybee's Club
    Favourite words: Zugzwang and Empiric

  5. #5
    Hyperactive Member
    Join Date
    Jun 2000
    Posts
    350

    Twain & activeX

    Robert-

    I used the time-honoured method of a Web Search, and Viola! (or Ole!, if you prefer), and here are two places you might try:

    TwainPRO- (free download for trial, USD99 to keep):
    http://info.apnpc.com.au/swlib/Compu...ls/000MO1.html

    Olympus Twain Wizard (also a trial download):
    http://www.olympus-software.com/

    I've been looking for a project to do- maybe you've started something here. (But not Music, though.) Please keep in touch on this.

    Cheers,

    Jim brown
    Johannesburg, South Africa

  6. #6
    New Member
    Join Date
    Jul 2000
    Posts
    3

    Cool

    Try this:
    Select Scanner:
    result = TWAIN_SelectImageSource(Me.hWnd)

    Scan Dialog:
    result = TWAIN_AcquireToClipboard(Me.hWnd, t%)
    Picture1.Picture = Clipboard.GetData(vbCFDIB)

    You need: 1. PictureBox (Name: Picture1)
    External file: Eztw32.dll

    Declare Function TWAIN_AcquireToClipboard Lib "EZTW32.DLL" (ByVal hwndApp&, ByVal wPixTypes&) As Long
    Declare Function TWAIN_SelectImageSource Lib "EZTW32.DLL" (ByVal hwndApp&) As Long

    if u can't find Eztw32.dll e-mail me...

    Never tested this code myself, but I'm sure it works..
    keep me updated with u'r results...

  7. #7
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    please repost with smilies disabled
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width