473,791 Members | 2,899 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wia 2.0 not initiating dialog to get the camera ID

1 New Member
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(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click

Dim righteyeimage As PictureBox = Nothing

Dim settings As Object = Nothing

Dim class1 As CommonDialogCla ss = New CommonDialogCla ss

Dim d As Device = class1.ShowSele ctDevice(WiaDev iceType.CameraD eviceType, True, False)

If (Not (d) Is Nothing) Then

settings.Device ID = d.DeviceID

settings.Save()

End If

Dim manager As DeviceManager = New DeviceManagerCl ass

Dim b As Device = Nothing

For Each info As DeviceInfo In manager.DeviceI nfos

If (info.DeviceID = settings.Device ID) Then

b = info.Connect

Exit For

End If

Next

settings.Execut eCommand(Comman dID.wiaCommandT akePicture)

righteyeimage = settings.lastpi cturetaken

PictureBox1 = righteyeimage

End Sub
Jun 19 '07 #1
0 2342

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

Similar topics

6
3411
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 I should invest in. Either I could buy a web cam and hope I can find a driver I could either modify or use. i.e. every frame is somehow stored on the computer automagically or I could buy a camera not unlike the AVRcam...
1
2060
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 accept images using Internet Ex. (no apps run on client side). Using technology of the ISAPI Extension dll client accept images with big interval (1 image(the size of the img 5000KB) per sec). The technology of the ip camera (web camera) enable to...
0
1233
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 using a sony Motion Eye series subcompact laptop which comes with a attached camera. VisSDK libraries don't detect the camera. I get the error message - " No Image source providers were found in the registry " Other softwares seem to be able to...
5
4944
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 that takes a snapshot of what is showing at the time. Any ideas? I have a capture card also, if that helps. Thanks.
2
4755
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 the camera and displays it. I found a couple sample apps out there. One is a WIA app but it does not see my camera. One is a TWAIN application and it also does not see my camera. I do not see any drivers on Pentax's site that talk about WIA or...
0
2506
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 the PC end, I need it to initiate on the Mobile Device end. I need the handheld to be the device that is initiating the file copy as it is the only one that knows the name of the file(s) to be copied. I have found numerous references to using RAPI...
2
2955
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 cant seem to get it to work. I think the problem is the path I am using. In explorer, the folder is just 'camera name', not a drive letter or whatever. I have tried the old trick of dragging an image from the camera folder onto the
2
5198
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 wireless mode and any computer on the wireless or local area network can see the camera and access the video. The setup went perfect for the internal network. But I cannot for the life of me see why the configurations I have set to see the camera...
3
2039
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 square is my camera and the gray square is a cube that I created to test the camera with. The image (Untitled2.jpg) is the result of rotating the camera around the X axis by 45 degrees. I am concerned, because I would expect the cube in...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10154
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.