Solved

input from USB read only

Posted on 2003-11-18
8
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

615 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