Results 1 to 2 of 2

Thread: [RESOLVED] WIA Commondialog issue with Windows7

  1. #1

    Thread Starter
    New Member Alain Moisan's Avatar
    Join Date
    Nov 2009
    Location
    Montreal
    Posts
    15

    Resolved [RESOLVED] WIA Commondialog issue with Windows7

    Hi all.

    My first post in years. Glad to see you guys are still here!

    I just got a new laptop with Windows 7 on it. I installed VB6 on it and things seem to work fine except I get an error when trying to use the WIA (Wondows Image Acquisition) common Dialog control on a form.

    Here is the error:



    Does anybody know how I can fix this?

    Thanks!

  2. #2

    Thread Starter
    New Member Alain Moisan's Avatar
    Join Date
    Nov 2009
    Location
    Montreal
    Posts
    15

    Re: WIA Commondialog issue with Windows7

    Well, I kind of resolved my problem.

    Here is how I did it in case this can be used for others.

    Instead of using the OCX object from the Component toolbar, I used Project references and declared a WIA.CommonDialog object in the code.


    Code:
    Dim oWIACd as WIA.CommonDialog
    Dim oImageFile as ImageFile
    
         Set oWIACd = new WIA.CommonDialog
         Set oImageFile = oWIACd.showAcquireImage
    Worked like a charm!

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