Click here to Skip to main content
15,923,789 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Studio 2008 & .Net 4.0 Pin
Scott Dorman23-Apr-10 12:11
professionalScott Dorman23-Apr-10 12:11 
GeneralRe: Studio 2008 & .Net 4.0 Pin
PIEBALDconsult27-Apr-10 14:08
mvePIEBALDconsult27-Apr-10 14:08 
GeneralRe: Studio 2008 & .Net 4.0 Pin
Scott Dorman27-Apr-10 14:45
professionalScott Dorman27-Apr-10 14:45 
GeneralRe: Studio 2008 & .Net 4.0 Pin
PIEBALDconsult27-Apr-10 15:54
mvePIEBALDconsult27-Apr-10 15:54 
AnswerRe: Studio 2008 & .Net 4.0 Pin
Dave Kreskowiak23-Apr-10 20:11
mveDave Kreskowiak23-Apr-10 20:11 
AnswerRe: Studio 2008 & .Net 4.0 Pin
Abhinav S23-Apr-10 21:21
Abhinav S23-Apr-10 21:21 
AnswerRe: Studio 2008 & .Net 4.0 Pin
PIEBALDconsult27-Apr-10 15:55
mvePIEBALDconsult27-Apr-10 15:55 
QuestionSending and Receiving ASCII of USB ports [solved] Pin
Fabio Franco23-Apr-10 10:05
professionalFabio Franco23-Apr-10 10:05 
Hi, I've been trying to figure out how to send commands for a printer installed in a USB port. Previously I could do this with the LPT1 port by calling kernel32.dll CreateFile method (DLLImport) and sending the commands this way. But with USB ports this doesn't work.

So does anybody know how to do that? Or at least have any article on that matter, I couldn't find anything (sorry if its easy to find, I just suck at finding stuff).

So my requirement is, cycle through USB ports to check if there is any device attached. If there is a device attached, send a command to ask the device to identify itself.

So basically I'll need two things, learn to dynamically cycle through USB port, send commands to it and read the responses.

All of that using C# and .Net Framework 2.0.

Any ideas?

Thanks in advance for any help. Regards,
Fábio

modified on Saturday, April 24, 2010 9:44 AM

AnswerRe: Sending and Receiving ASCII of USB ports Pin
Dave Kreskowiak23-Apr-10 20:14
mveDave Kreskowiak23-Apr-10 20:14 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Fabio Franco24-Apr-10 3:44
professionalFabio Franco24-Apr-10 3:44 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Dave Kreskowiak25-Apr-10 4:03
mveDave Kreskowiak25-Apr-10 4:03 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Fabio Franco25-Apr-10 9:05
professionalFabio Franco25-Apr-10 9:05 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Dave Kreskowiak25-Apr-10 14:18
mveDave Kreskowiak25-Apr-10 14:18 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Fabio Franco26-Apr-10 2:32
professionalFabio Franco26-Apr-10 2:32 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Dave Kreskowiak26-Apr-10 12:08
mveDave Kreskowiak26-Apr-10 12:08 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Fabio Franco26-Apr-10 14:27
professionalFabio Franco26-Apr-10 14:27 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Dave Kreskowiak26-Apr-10 18:15
mveDave Kreskowiak26-Apr-10 18:15 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Fabio Franco27-Apr-10 2:39
professionalFabio Franco27-Apr-10 2:39 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Dave Kreskowiak27-Apr-10 2:45
mveDave Kreskowiak27-Apr-10 2:45 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Fabio Franco27-Apr-10 2:56
professionalFabio Franco27-Apr-10 2:56 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Dave Kreskowiak27-Apr-10 2:46
mveDave Kreskowiak27-Apr-10 2:46 
GeneralRe: Sending and Receiving ASCII of USB ports Pin
Fabio Franco27-Apr-10 2:57
professionalFabio Franco27-Apr-10 2:57 
QuestionStreaming WAV files from SQL Server into a Web Page Pin
bynagari23-Apr-10 5:12
bynagari23-Apr-10 5:12 
AnswerRe: Streaming WAV files from SQL Server into a Web Page Pin
Not Active23-Apr-10 6:12
mentorNot Active23-Apr-10 6:12 
GeneralRe: Streaming WAV files from SQL Server into a Web Page Pin
bynagari23-Apr-10 6:16
bynagari23-Apr-10 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.