GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 02-Jun-2005, 16:49
Automatik Automatik is offline
Awaiting Email Confirmation
 
Join Date: May 2005
Posts: 21
Automatik is on a distinguished road

Detect Removable USB Device


How would I go about scanning my computer to find attached USB devices using C++.

Any Ideas?
  #2  
Old 07-Jun-2005, 10:38
xtheagonyscenex xtheagonyscenex is offline
New Member
 
Join Date: Jun 2005
Location: FL
Posts: 10
xtheagonyscenex is an unknown quantity at this point
Quote:
Originally Posted by Automatik
How would I go about scanning my computer to find attached USB devices using C++.

Any Ideas?
what are you gonna use it for game controllers or what?
  #3  
Old 07-Jun-2005, 10:44
xtheagonyscenex xtheagonyscenex is offline
New Member
 
Join Date: Jun 2005
Location: FL
Posts: 10
xtheagonyscenex is an unknown quantity at this point
got it!

here this should work:
[Code removed for Copyright issues]
Last edited by LuciWiz : 05-Sep-2009 at 12:42. Reason: Copyright infringement
  #4  
Old 07-Jun-2005, 10:46
xtheagonyscenex xtheagonyscenex is offline
New Member
 
Join Date: Jun 2005
Location: FL
Posts: 10
xtheagonyscenex is an unknown quantity at this point
did that work?
Last edited by admin : 26-Jul-2005 at 05:43. Reason: Please follow the rules...
  #5  
Old 07-Jun-2005, 10:51
xtheagonyscenex xtheagonyscenex is offline
New Member
 
Join Date: Jun 2005
Location: FL
Posts: 10
xtheagonyscenex is an unknown quantity at this point
you have to only use some of it i asume i got some errors though when i tried to compile because i dont have some of the include files.
  #6  
Old 07-Jun-2005, 11:01
Automatik Automatik is offline
Awaiting Email Confirmation
 
Join Date: May 2005
Posts: 21
Automatik is on a distinguished road
Quote:
Originally Posted by xtheagonyscenex
you have to only use some of it i asume i got some errors though when i tried to compile because i dont have some of the include files.
I got it thanks...
  #7  
Old 07-Jun-2005, 11:16
xtheagonyscenex xtheagonyscenex is offline
New Member
 
Join Date: Jun 2005
Location: FL
Posts: 10
xtheagonyscenex is an unknown quantity at this point
Quote:
Originally Posted by Automatik
I got it thanks...

heres the header file you get a error without it

CPP / C++ / C Code:
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__02B29EB0_6F9D_4F63_9A7A_876C56C5BE21__INCLUDED_)
#define AFX_STDAFX_H__02B29EB0_6F9D_4F63_9A7A_876C56C5BE21__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers

#include <stdio.h>

// TODO: reference additional headers your program requires here

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__02B29EB0_6F9D_4F63_9A7A_876C56C5BE21__INCLUDED_)
Last edited by LuciWiz : 08-Jun-2005 at 15:26. Reason: Please insert your C++ code between [c++] & [/c++] tags
  #8  
Old 07-Jun-2005, 15:07
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,335
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Dang that's impossible to read! Maybe someone here should read the sticky at the top of the forum. The author went to a lot of trouble to write it up so you can post good readable messages. Be courteous and read it please!
__________________

During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence?
  #9  
Old 26-Jul-2005, 05:36
tw1965 tw1965 is offline
Awaiting Email Confirmation
 
Join Date: Jul 2005
Posts: 1
tw1965 is on a distinguished road
Use the USBVIEW sample code in the Windows DDK.
You can find the USBVIEW.EXE here :
"www.ftdichip.com/Resources/Utilities/usbview.zip"
www.ftdichip.com
  #10  
Old 03-Sep-2009, 13:46
jinay_mehta25 jinay_mehta25 is offline
New Member
 
Join Date: Sep 2009
Posts: 1
jinay_mehta25 is on a distinguished road

source code to activate capture and save images on pc using webcam connected thru us


i need help for
"source code to activate capture and save images on pc using webcam connected thru usb"

can anyone guide which language shud i use and how shud i proceed??
also anywhere i can find help on this topic??
my yahoo id is jinay_mehta25@yahoo.com
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is a Handle in Device Context Janakiraman MS Visual C++ / MFC Forum 1 12-May-2005 05:09
Detect number of pages when printed? malibu82 Web Design Forum 2 29-Jul-2004 07:54
How do you detect resolution & launch an app with Javascript? rhino1616 Web Design Forum 16 01-Dec-2003 12:00
How do I detect flash version on my computer system? rhino1616 Graphics Forum 2 23-Oct-2003 10:14
.NET Mobile Controls Device Update 3.0 Available at DiscountASP.NET dasp Web Hosting Advertisements & Offers 0 15-Sep-2003 17:26

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:56.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.