Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We have tried to code a program which connect a hardware device and pc to retrieve the device information.But it is not working properly.
can you please help us for this in c++ or in java?

What I have tried:

We have tried to code a program which connect a hardware device and pc to retrieve the device information.But it is not working properly.
can you please help us for this in c++ or in java?
Posted
Updated 3-Nov-17 2:37am
v2
Comments
CPallini 3-Nov-17 3:38am    
Such a question is too vague.
You should better detail your scenario.
Jochen Arndt 3-Nov-17 3:52am    
You need a device driver for that device.
If you don't have one (device is developed by you / your company), you have to write one. Alternatively you can use a generic device driver (storage, keyboard) but the device must announce itself as such.

1 solution

This depends on the device and Jochen is correct by pointing to a driver. Contact the vendor of the device.

When it is an USB device the article How to Access a USB Device by Using WinUSB Functions could give some insights.

For a more general approach you should search in the Windows hardware development samples for some example code.
 
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