Solved

input from USB read only

Posted on 2003-11-18
8
292 Views
Last Modified: 2010-04-15
Hi,

I need to take messages from a usb device and print it to the command line, in windows.
i.e program should be able to open the port take in the binary and convert it to hex and print it...
How do I do this?
0
Comment
Question by:XPUSR
  • 4
  • 3
8 Comments
 
LVL 5

Assisted Solution

by:g0rath
g0rath earned 350 total points
ID: 9771473
http://www.lvr.com/hidpage.htm

This guy has code examples using MSVC++, VB6, C#, and links on how to do this under Linux
0
 

Author Comment

by:XPUSR
ID: 9771542
Thanks, but I need something a little more basic than that..

Any ideas?

J
0
 
LVL 5

Expert Comment

by:g0rath
ID: 9771802
what do you mean by more basic? a high level overview of how it works? he's got fully functional code so its in the source if you want to modify for your needs....

Is this under windows and what compiler are you using, if your using something other then MSVC++ it shouldn't be to hard to get it working on something like Borland C++, Turbo, lcc-win, mingw, etc...
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:XPUSR
ID: 9780787
I need somethink more simplified- I have found a like with some some code but cannot get it to compile,

Could somebody please take a look @ this code,

http://www.alanmacek.com/usb/hostcode.html

I think this does or is supposed to do what I need to do but I cannot get it working with VC++ 6 , it should be straight forward to a good programmer ...

Thanks

j
0
 
LVL 5

Accepted Solution

by:
g0rath earned 350 total points
ID: 9781005
The link I gave you does excatly what this code does, but explains what is really going on. The reason you're not getting this to compile is because you most likely do not have the Microsoft DDK. It is available for free, but not to download.

This smells like a homework question since your not looking to learn but to find code that compiles directly without knowing what it does.

The link you sent is just the functions, you would have to write your own main, to access these functions...that is also why it doesn't "compile"
0
 

Author Comment

by:XPUSR
ID: 9781922
I am looking to learn but I was looking for simplistic code as this would make it easier for me,

If I can't download the DDK then how do I get my hands on it?
0
 
LVL 5

Expert Comment

by:g0rath
ID: 9810293
You have to order it, pay $15 to get it sent to you, Microsoft's S/H as they call it

http://www.microsoft.com/whdc/ddk/ordernetddkcd.mspx
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now