Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello everyone, I am working on a project in C# in which I need, whenever I plugin USB drive (Flash Drive) in USB port, camera should start and capture my picture. I hope for fruitful replies. Please recommend me useful links or source codes. Thank you!
Posted
Updated 14-Nov-15 20:58pm
v2
Comments
Dave Kreskowiak 13-Nov-15 15:37pm    
Well, you haven't said anything at all about what kind of problem you're having with this little project. No, there is probably not any pre-written code out there that is going to do this.

Break the problem down into small parts that are responsible for very specific things, like detecting when a drive is plugged in and then Google for stuff like that.
Member 12079408 15-Nov-15 3:00am    
Thanks for your reply, actually I am newbie and I don't know what API would be used in C# to link USB interrupt with Webcam. I don't know what should I do
Dave Kreskowiak 15-Nov-15 9:09am    
The links in the 1st solution are good for a start, but be warned. Since you're a noob at this, this project may be way over your head.

1 solution

Here are some links for you:
How to detect a USB drive has been plugged in?[^]

MSDN: Webcam Capture[^]

Then it is just a matter of writing the software that brings it all together.
You have not specified any particular language, so I used examples for C#.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900