B
Bob
Gidday,
Anyone in here used WIA before?
I want to be able to connect to a digital camera via USB and access the
images. I was hoping WIA would be all I need but it doesn't see my camera
(Sony DSC-F717). Does the camera being used need some kind of compliant
driver? Or should any XP-recognised digital camera work?
I know I can tap into the supplied software that came with the camera but
this app will be used for multiple camera types (including Nikon) and I'd
rather avoid having to add code for each new camera that comes out. A more
generic approach would be best.
Code I am using to select camera follows (coded in VB6 but same effect in
VB.Net):
Dim objWIA As WIA.CommonDialog
Dim objDevice As WIA.Device
Set objWIA = New WIA.CommonDialog
Set objDevice = objWIA.ShowSelectDevice(UnspecifiedDeviceType, False)
MsgBox objDevice.DeviceID
Very simple but produces this error:
Run-time error '-2145320939 (80210015)':
No WIA device of the selected type is available.
I've also tried setting the devicetype to camera but same deal.
Any help appreciated...
Cheers
Anyone in here used WIA before?
I want to be able to connect to a digital camera via USB and access the
images. I was hoping WIA would be all I need but it doesn't see my camera
(Sony DSC-F717). Does the camera being used need some kind of compliant
driver? Or should any XP-recognised digital camera work?
I know I can tap into the supplied software that came with the camera but
this app will be used for multiple camera types (including Nikon) and I'd
rather avoid having to add code for each new camera that comes out. A more
generic approach would be best.
Code I am using to select camera follows (coded in VB6 but same effect in
VB.Net):
Dim objWIA As WIA.CommonDialog
Dim objDevice As WIA.Device
Set objWIA = New WIA.CommonDialog
Set objDevice = objWIA.ShowSelectDevice(UnspecifiedDeviceType, False)
MsgBox objDevice.DeviceID
Very simple but produces this error:
Run-time error '-2145320939 (80210015)':
No WIA device of the selected type is available.
I've also tried setting the devicetype to camera but same deal.
Any help appreciated...
Cheers