473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Wia 2.0 not initiating dialog to get the camera ID

I'm trying to make a button that chooses a camera and then makes that camera take a picture, when running it in debug I get Exception from HRESULT: 0x80210015 with the bolded line highlighted

I'm using Visual Studio 2005 on Vista Home Premium and Visual Basic





Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim righteyeimage As PictureBox = Nothing

Dim settings As Object = Nothing

Dim class1 As CommonDialogClass = New CommonDialogClass

Dim d As Device = class1.ShowSelectDevice(WiaDeviceType.CameraDevice Type, True, False)

If (Not (d) Is Nothing) Then

settings.DeviceID = d.DeviceID

settings.Save()

End If

Dim manager As DeviceManager = New DeviceManagerClass

Dim b As Device = Nothing

For Each info As DeviceInfo In manager.DeviceInfos

If (info.DeviceID = settings.DeviceID) Then

b = info.Connect

Exit For

End If

Next

settings.ExecuteCommand(CommandID.wiaCommandTakePi cture)

righteyeimage = settings.lastpicturetaken

PictureBox1 = righteyeimage

End Sub
Jun 19 '07 #1
0 2314

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Newbie | last post by:
I am doing some robotics projects but my main area of interest is trying out several algorithms for the processing of the stream of data coming from the video. I am wondering what type of camera...
1
by: Pola | last post by:
I am working with IIS. I am using ISAPI Extension dll, that runs on the web server. I am working on the appl that have to receive images(jpeg from video camera) in the real time. the client...
0
by: Manas Mittal | last post by:
Hi I have made a application that uses the Microsoft's old VisSDK software libraries. The software works fine with a Logitech Camera attached. However, I am unable to get it to work using when...
5
by: Brian | last post by:
Hello, I was wondering if anyone knows of an easy way to capture an image from a digital camera and put it into a picturebox. I need to be able to view the video feed and click a capture button...
2
by: Stupid48 | last post by:
I have this Pentax Optio camera and I want to access it via vb.net. I would like to write something where I can snap the picture from the application and it automatically acquires the image from...
0
by: AmyHanson | last post by:
I am new to mobile development and am having some trouble sources for the tasks I need to perform. I have been looking around and I can find plenty of information on copying the file initiating on...
2
by: MDausmann | last post by:
Hi I have a camera that mounts as a folder when I plug it in and is available in explorer. I thought it would be possible to access the images on the camera using normal file operations but I...
2
by: dcblair | last post by:
Hi guys and girls. I can't seem to figure this one out. Here is my setup: Speedtouch 536 DSL Modem, Nexxt 4 Port Wireless Router, CNET CIC 920W Wireless IP Camera. The camera is set up in...
3
by: Jajjo | last post by:
Hey there. I have made a new camera system and I'm having a sort-of issue. The attached image (Untitled.jpg) will be the image I refer to when I say pink, orange, green or whatever. The black...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.