[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:
http://www.guitaresmoisan.com/WIA Error.jpg
Does anybody know how I can fix this?
Thanks!
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!